Skip to content

Commit a59ce17

Browse files
authored
Merge pull request Python-World#453 from Sanketh149/master
Update calculator.py
2 parents e604c8b + f6afef1 commit a59ce17

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

projects/Create_calculator_app/calculator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ def cal():
125125
button18 = Button(root, text='^', fg=text_fg, bg=cal_button_bg, padx=10, pady=3,
126126
command=lambda: get_input(entry, '**'))
127127
button18.grid(row=5, column=2, pady=5)
128+
def quit():
129+
exit['command'] = root.quit()
130+
exit = Button(root, text='Quit', fg='white', bg='black', command=quit, height=1, width=7)
131+
exit.grid(row=6, column=1)
128132

129133
root.mainloop()
130134

0 commit comments

Comments
 (0)