[Tutor] Python 3 and tkinter Radiobuttons

bob smith bobsmith327 at hotmail.com
Fri Oct 9 00:04:27 CEST 2009

Hi.  I’m using Tkinter to create a new Radiobutton in Python 3.  However, when I create the button, it starts off looking selected instead of unselected (though it behaves correctly like an unselected Radiobutton).  So this means when I create a group of Radiobuttons they all look selected when my program begins.  This happens under both Windows XP and Windows 7.
Here’s a super simple example program that produces this result:
from tkinter import *
root = Tk()
button = Radiobutton(root, text = "Test RadioButton")
button.grid(row = 0, column = 0, sticky = W)          
Does anyone know how to solve this issue?  Anyone know if this is a bug being worked on?
Hotmail: Powerful Free email with security by Microsoft.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091008/194bf04d/attachment-0001.htm>

More information about the Tutor mailing list