> To: tutor@python.org
> From: alan.ga...@btinternet.com
> Date: Sun, 11 Oct 2009 19:32:20 +0100
> Subject: Re: [Tutor] Python 3 and tkinter Radiobuttons
>
>
> "Kent Johnson" <ken...@tds.net> wrote
>
> > Without the v.set() it starts with no button selected. With v.set() it
> > starts with one button selected. Either way it satisfies the OP's
> > requirement; which one is correct depends on his needs.
>
> Unfortunately on Windows it seems to set them all selected
> without the var set. At least it does for me using Python 3.1
>
> Alan G.
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
Yes, on Windows with Python 3.1 and using a StringVar(), the initial state is
that all radio buttons look selected when the program first begins. I'm able
to work around it so that no radio buttons look selected when the program first
begins with:
v.set(None)
But this seems a bit like a hack. I know back in Python 2.x on Windows, I
didn't need to do this. Is this a bug in tkinter for Python 3? (I know when
using an IntVar, you don't need to do this). Is this the best solution for now?
Thanks,
--Bob
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor