diff --git a/main.py b/main.py index dc2a643..575927e 100644 --- a/main.py +++ b/main.py @@ -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 """