Wednesday, March 20, 2013

Simple example using tkinter Button with command

example using tkinter Button with command
example using tkinter Button with command


#tkinter for Python 3.x
#Tkinter for Python 2.x

import tkinter

tkTop = tkinter.Tk()
tkButtonQuit = tkinter.Button(tkTop, text="Quit", command=tkTop.quit)
tkButtonQuit.pack()
tkinter.mainloop()


No comments:

Post a Comment