[Tutor] Python 3 and tkinter Radiobuttons

bob smith bobsmith327 at hotmail.com
Sun Oct 11 23:16:53 CEST 2009

> To: tutor at python.org
> From: alan.gauld at btinternet.com
> Date: Sun, 11 Oct 2009 19:32:20 +0100
> Subject: Re: [Tutor] Python 3 and tkinter Radiobuttons
> "Kent Johnson" <kent37 at 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 at 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:


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?


Hotmail: Trusted email with powerful SPAM protection.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091011/9f123011/attachment-0001.htm>

More information about the Tutor mailing list