From 2346b90f7bcefa537ffa95f32219690529367daf Mon Sep 17 00:00:00 2001 From: Oleksandr Krotkov Date: Wed, 22 Jan 2020 10:55:48 -0500 Subject: [PATCH 1/3] Update main.py --- main.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/main.py b/main.py index dc2a643..fca4511 100644 --- a/main.py +++ b/main.py @@ -1,17 +1,16 @@ 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 Interface') + panel = wx.Panel(self) + + +if __name__ == '__main__': + app = wx.App() + frame = MyFrame() + app.MainLoop() """ Part one- Chemai """ From 2d125938fca6598f745c04f04987040a928ca1c4 Mon Sep 17 00:00:00 2001 From: Oleksandr Krotkov Date: Wed, 22 Jan 2020 10:55:54 -0500 Subject: [PATCH 2/3] Update main.py --- main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/main.py b/main.py index fca4511..fbbf66d 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,5 @@ import wx -cost for all materials ( THAT ARE CONSTANTS ) class MyFrame(wx.Frame): def __init__(self): super().__init__(parent=None, title='Construction Interface') From 72894f5397d4f683e08172b0c483a069aa35748c Mon Sep 17 00:00:00 2001 From: Sashik21 Date: Thu, 23 Jan 2020 10:28:12 -0500 Subject: [PATCH 3/3] update 01/24.2019 --- main.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index fbbf66d..575927e 100644 --- a/main.py +++ b/main.py @@ -2,10 +2,24 @@ class MyFrame(wx.Frame): def __init__(self): - super().__init__(parent=None, title='Construction Interface') - panel = wx.Panel(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()