Button text and command : Button : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Button »

 

Button text and command


Button text and command
from Tkinter import *
import sys
def close():
    sys.exit(0)

root = Tk()
button = Button(root)
button['text'] "Close"
button['command'] = close
button.pack()
root.mainloop()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Tkinker
» Button