From: Martin W. <Mar...@gm...> - 2006-02-08 17:38:02
|
Hi everybody. I'm currently trying to create a pop-up GUI with Radiobuttons (e.g. checkboxes). I don't know why initial highlighting of a specific Checkbox won't work. Attribute .set() fails at this point (see below), although the GUI looks nice. from Tkinter import * root = Tk() def radio1(): global tmp tmp = IntVar() for i in range(10): rad = Radiobutton(root, text = str(i), value = i , variable = tmp) rad.pack(side = LEFT) tmp.set(5) radio1() root.mainloop() Any help would be appreciated. Regards, Martin -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie |