Public feed #298062

Something

public python v1 · immutable
Raw Edit
·published 2006-12-31 14:57 UTC
rendered paste body
import Tkinterapp = Tkinter.Tk()def show_state():    print "The state of the checkbutton is:", v.get()v = Tkinter.BooleanVar(app)c = Tkinter.Checkbutton(app, variable=v, onvalue=1, offvalue=0, command=show_state)c.pack()app.mainloop()