Skip to content

Commit 0f01cc7

Browse files
committed
Update main.py
Makes the calculator actually able to launch.
1 parent 43207e1 commit 0f01cc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

calculator/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def create_gui(self):
1414

1515
self.display = display.CalculatorDisplay(self.calculator)
1616
self.buttons = button.CalculatorButtons(self.calculator)
17+
18+
self.display.create_gui(self.window)
19+
self.buttons.create_gui(self.window)
1720

1821
self.display.frame.pack(fill=tk.BOTH,expand=True,side=tk.TOP,padx=10,pady=(10,0))
1922
self.buttons.frame.pack(fill=tk.BOTH,expand=True,side=tk.BOTTOM,padx=10,pady=(0,10))
@@ -31,4 +34,5 @@ def run(self):
3134

3235
if __name__ == "__main__":
3336
my_app = App()
37+
my_app.create_gui()
3438
my_app.run()

0 commit comments

Comments
 (0)