[Tkinter-discuss] re: how to delete a toplevel window from within it?

2005-01-07 Thread Jared Cohen
I tried the following method, invoked by a button, without success # in FileEditor.py: ... def close(self): '''close the window that we live in''' self.destroy() ... but the following error is returned: AttributeError: Editor instance has no attribute 'destroy' The pr

[Tkinter-discuss] Never mind AGAIN

2005-01-07 Thread Jared Cohen
Ugh. I agonized over this puzzle for weeks, and then as SOON as I post a request for help, I suddenly find the answer on my own. Go figure.  ;-) The answer was something I'd never have expected: when I created the PanedWidget, one of the initialization options was "hull_borderwidth=1". Somehow

[Tkinter-discuss] how to delete a toplevel window from within it?

2005-01-07 Thread Stewart Midwinter
I've put together a little text editor widget that's run from my app in order to edit config files. This widget is in its own module, so I import the module and create an instance of the FileEditor class in a Toplevel window. All is well with my widget; it opens files, allows simple edits to take

[Tkinter-discuss] Another, unrelated problem -- combining Tix Tree and Pmw PanedWidget

2005-01-07 Thread Jared Cohen
I've been building an application using straight Tkinter and Pmw megawidgets. Recently, I needed a collapsible tree widget, which Pmw didn't have; so I turned to Tix. Now, here's the problem. My application uses a Pmw.PanedWidget to separate the window into panes; the tree needs to be packed in

[Tkinter-discuss] Never mind

2005-01-07 Thread Jared Cohen
I figured it out. Thanks anyway :-) ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

[Tkinter-discuss] Please help -- Pmw PanedWidget inside ScrolledFrame

2005-01-07 Thread Jared Cohen
I'm trying to use a Pmw.ScrolledFrame which contains a PanedWidget. But I can't get the PanedWidget to expand to fill the interior frame. It expands fine if I just grid it into the toplevel window; and when I tried gridding DIFFERENT widgets into the ScrolledFrame, they expanded just fine. So b