[Tutor] Tkinter Radiobutton

jfouhy at paradise.net.nz jfouhy at paradise.net.nz
Mon Jan 17 03:56:26 CET 2005


Quoting Ismael Garrido <ismaelgf at adinet.com.uy>:

> 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

What is the error message?

>  Button(self.configurar, command=lambda: self._configurarOk(), 
> text="Ok").grid(row=4, column=0 )
>  Button(self.configurar, command=lambda: 
> self.configurar.destroy(), text="Cancelar").grid(row=4, column=1)

An unrelated comment: This would be better as 
  command=self._configurarOK
and
  command=self.configurar.destroy
.

-- 
John.


More information about the Tutor mailing list