Button action : Button : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Button »

 

Button action


Button action: sys.exit
import Tkinter
import sys
win = Tkinter.Tk()
b = Tkinter.Button(win, text="Hello Python World!",command=sys.exit)
b.pack()
win.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Button