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
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
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
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
I figured it out. Thanks anyway :-)
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
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