@@ -56,11 +56,13 @@ def Mode():
5656 else :
5757 Result .set ('Invalid Mode' )
5858
59- # Function to exit window
59+
60+ # Function to exit window
6061def Exit ():
6162 """Exit the window."""
6263 root .destroy ()
6364
65+
6466# Function to reset
6567def Reset ():
6668 """Reset the screen."""
@@ -69,7 +71,6 @@ def Reset():
6971 mode .set ("" )
7072 Result .set ("" )
7173
72-
7374# Message
7475Label (
7576 root , font = 'arial 12 bold' , text = 'MESSAGE'
@@ -93,22 +94,22 @@ def Reset():
9394).place (x = 290 , y = 120 )
9495
9596# result
96- Entry (root ,
97- font = 'arial 10 bold' , textvariable = Result , bg = 'ghost white'
97+ Entry (
98+ root , font = 'arial 10 bold' , textvariable = Result , bg = 'ghost white'
9899).place (x = 290 , y = 150 )
99100
100101# result button
101102Button (
102- root , font = 'arial 10 bold' , text = 'RESULT' , padx = 2 , bg = 'LightGray' , command = Mode
103+ root , font = 'arial 10 bold' , text = 'RESULT' , padx = 2 , bg = 'LightGray' , command = Mode
103104).place (x = 60 , y = 150 )
104105
105106# reset button
106107Button (
107- root , font = 'arial 10 bold' , text = 'RESET' , width = 6 ,command = Reset , bg = 'LimeGreen ' , padx = 2
108+ root , font = 'anson' , text = 'RESET' , width = 6 , command = Reset , bg = 'Green ' , padx = 2
108109).place (x = 80 , y = 190 )
109110
110111# exit button
111112Button (
112- root , font = 'arial 10 bold ' , text = 'EXIT' , width = 6 , command = Exit , bg = 'OrangeRed ' , padx = 2 , pady = 2
113+ root , font = 'anson ' , text = 'EXIT' , width = 6 , command = Exit , bg = 'Red ' , padx = 2 , pady = 2
113114).place (x = 180 , y = 190 )
114115root .mainloop ()
0 commit comments