Re: Tkinter: Making a window disappear

2006-10-10 Thread Eric Brunel
On Mon, 09 Oct 2006 11:08:39 +0200, Claus Tondering <[EMAIL PROTECTED]> wrote: > I just solved the problem myself: > > I wrote: >> self.destroy() > > Writing "self.master.destroy()" instead does the trick. As an alternative (which is better IMHO), you may consider specializing Top

Re: Tkinter: Making a window disappear

2006-10-09 Thread James Stroud
Claus Tondering wrote: > I am trying to make a Tkinter main window appear and disappear, but I > have problems with that. > > Here is a small code sample: > > class MyDialog(Frame): > def __init__(self): > Frame.__init__(self, None) > Label(self, text="Hello").

Re: Tkinter: Making a window disappear

2006-10-09 Thread Fredrik Lundh
Claus Tondering wrote: >I am trying to make a Tkinter main window appear and disappear, but I > have problems with that. > > Here is a small code sample: > >class MyDialog(Frame): >def __init__(self): >Frame.__init__(self, None) >Label(self, text="Hello").pack()

Re: Tkinter: Making a window disappear

2006-10-09 Thread Claus Tondering
I just solved the problem myself: I wrote: > self.destroy() Writing "self.master.destroy()" instead does the trick. Sorry for the inconvenience. -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Tkinter: Making a window disappear

2006-10-09 Thread Claus Tondering
I am trying to make a Tkinter main window appear and disappear, but I have problems with that. Here is a small code sample: class MyDialog(Frame): def __init__(self): Frame.__init__(self, None) Label(self, text="Hello").pack() Button(self, text="OK"