Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sasha wx #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
import wx

print ("dumb")
print ('I am also dumb')

"""
cost for all materials ( THAT ARE CONSTANTS )
"""
price_concrete = 150
price_joist = 24.07
price_studs = 2.72



class MyFrame(wx.Frame):
def __init__(self):
super().__init__(parent=None, title='Construction Calculator')

#First question
panel = wx.Panel(self)
wx.StaticText(panel, id=-1, label = "What's length of your house?", pos =(5, 10), style = 3, name = "test")
self.text_ctrl = wx.TextCtrl(panel, pos=(5, 35))
my_btn = wx.Button(panel, label='Press', pos=(5, 65))

#Second question
wx.StaticText(panel, id=-1, label = "What's width of your house?", pos =(5, 100), style = 3, name = "test")
self.text_ctrl = wx.TextCtrl(panel, pos=(5, 120))
my_btn = wx.Button(panel, label='Press', pos=(5, 150))
self.Show()

#Perimeter of your house:
wx.StaticText(panel, id=-1, label = "Your perimeter is: ", pos =(5, 180), style = 3, name = "test")

self.Show()
if __name__ == '__main__':
app = wx.App()
frame = MyFrame()
app.MainLoop()
"""
Part one- Chemai
"""
Expand Down