Re: Tkinter Checkbutton initialization problem

2005-07-04 Thread Eric Brunel
On 03 Jul 2005 02:32:21 -0700, Paul Rubin wrote: > Python 2.4, Windows XP. If I say: > > f = Frame() > f.grid() > v = IntVar() > c = Checkbutton(f, text='hi there', variable=v) > c.grid() > f.mainloop() > > then the checkbutton should initially d

Re: Tkinter Checkbutton initialization problem

2005-07-03 Thread Paul Rubin
Scott David Daniels <[EMAIL PROTECTED]> writes: > 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. Yeah, I tried that too. Further reorganization of the cod

Re: Tkinter Checkbutton initialization problem

2005-07-03 Thread Scott David Daniels
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() -- http://mail.python.org/mailm

Tkinter Checkbutton initialization problem

2005-07-03 Thread Paul Rubin
Python 2.4, Windows XP. If I say: f = Frame() f.grid() v = IntVar() c = Checkbutton(f, text='hi there', variable=v) c.grid() f.mainloop() then the checkbutton should initially display as being checked. But it doesn't. It shows up unchecked, even though v.get() returns 1.