Tkinter Checkbutton initialization problem

Scott David Daniels Scott.Daniels at Acm.Org
Sun Jul 3 11:39:24 EDT 2005


Paul Rubin wrote:
> Python 2.4, Windows XP.  If I say:
>     f = Frame()
>     f.grid()
>     v = IntVar()
       v.set(1)  # Might help. v.get() at this point returned 0 for me.
>     c = Checkbutton(f, text='hi there', variable=v)
>     c.grid()
>     f.mainloop()



More information about the Python-list mailing list