Re: Getting value of radiobutton trouble

2005-05-29 Thread VK
Philippe C. Martin wrote: > PS: Since your starting with TKinter, and although I do not know what your > goal is, I suggest you take a look at wxPython: it is _wonderfull_ ! (no > offence to TCL/TK) > > Regards, > > Philippe > > > > > > > VK wrote: > > >>Philippe C. Martin wrote: >> >>>Hi

Re: Getting value of radiobutton trouble

2005-05-28 Thread VK
Philippe C. Martin wrote: > Then I guess you need a TopLevel widget instead: > > > (I still suggest you look at wxPython) > > > from Tkinter import * > class GetVariant: > def __init__(self,p): > self.root = p > > self.firstframe = Frame(self.root,bg="red") > se

Re: Getting value of radiobutton trouble

2005-05-28 Thread Philippe C. Martin
Then I guess you need a TopLevel widget instead: (I still suggest you look at wxPython) from Tkinter import * class GetVariant: def __init__(self,p): self.root = p self.firstframe = Frame(self.root,bg="red") self.firstframe.pack(side=BOTTOM,expand=1)

Re: Getting value of radiobutton trouble

2005-05-28 Thread VK
Philippe C. Martin wrote: > Sorry, > > I still had your code in my clipboard :-) here goes: So, your code works, but I need, that first window calls another separate window. In your programm they stick together. Reg, VK > > > > from Tkinter import * > class GetVariant(Frame): > def __in

Re: Getting value of radiobutton trouble

2005-05-28 Thread Philippe C. Martin
PS: Since your starting with TKinter, and although I do not know what your goal is, I suggest you take a look at wxPython: it is _wonderfull_ ! (no offence to TCL/TK) Regards, Philippe VK wrote: > Philippe C. Martin wrote: >> Hi, >> >> I think your second call to Tk() does it: this works

Re: Getting value of radiobutton trouble

2005-05-28 Thread VK
Philippe C. Martin wrote: > Hi, > > I think your second call to Tk() does it: this works although the look is > different: > > > from Tkinter import * > class GetVariant: > def __init__(self): > self.root = Tk() > self.mainframe = Frame(self.root,bg="yellow") > s

Re: Getting value of radiobutton trouble

2005-05-28 Thread Philippe C. Martin
Sorry, I still had your code in my clipboard :-) here goes: from Tkinter import * class GetVariant(Frame): def __init__(self,p): self.root = p self.mainframe = Frame(self.root,bg="yellow") self.mainframe.pack(fill=BOTH,expand=1) self.firstframe = Frame(

Re: Getting value of radiobutton trouble

2005-05-28 Thread Philippe C. Martin
Hi, I think your second call to Tk() does it: this works although the look is different: from Tkinter import * class GetVariant: def __init__(self): self.root = Tk() self.mainframe = Frame(self.root,bg="yellow") self.mainframe.pack(fill=BOTH,expand=1) s

Getting value of radiobutton trouble

2005-05-28 Thread VK
Hi! What I'm missing in following code? Cannot get the values of radiobuttons. Starting only one class (GetVariant), it works. When I put two classes together, it doesn't. Regards, VK from Tkinter import * class GetVariant: def __init__(self): self.root = Tk() self.mainfra