[Tutor] Tkinter Radiobutton

Kent Johnson kent37 at tds.net
Mon Jan 17 12:01:18 CET 2005


Is this code running in a larger program that has a window? You are only supposed to have one root 
window (Tk()) in a program, maybe that is the problem.

Kent


Ismael Garrido wrote:
> Ismael Garrido wrote:
> 
>> Hello.
>>
>> I can't figure out what's wrong in here! For some reason I can't 
>> understand, the radiobuttons don't work. The code itself is correct, 
>> the problem arises when I tell them that their master is 
>> self.configurar. I don't know why, but they don't like it.
> 
> 
> 
> After changing this:
> 
>>    def _configurar(self):
>>        self.configurar = Tk() 
> 
> 
> To this: self.configurar= Toplevel(self.root)
> Works....
> 
> I don't understand why it didn't work the other way around. Is it some 
> kind of bug or strange 'feature'? Or was I making a silly mistake?
> 
> Thanks
> Ismael
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 



More information about the Tutor mailing list