Re: Getting Tkinter Text contents before destruction

2006-02-09 Thread Fredrik Lundh
Bob Greschke wrote: > I want to grab the contents of a Text widget when the frame it's on gets > destroyed. I tried > TextWidget.bind(""... , but the widget is gone before the call gets > made, and I'd really > hate to do something with the function that gets called with > TextWidgetsFrame.b

Re: Getting Tkinter Text contents before destruction

2006-02-09 Thread Eric Brunel
On Mon, 06 Feb 2006 19:32:52 -0800, James Stroud <[EMAIL PROTECTED]> wrote: > If TextWidgetsFrame inherets from frame, you can override the destroy() > method which gets called when the parent gets destroyed. Unfortunately, it doesn't get called. Everything actually happens at tk level, where

Re: Getting Tkinter Text contents before destruction

2006-02-09 Thread Eric Brunel
On Mon, 6 Feb 2006 20:11:28 -0700, Bob Greschke <[EMAIL PROTECTED]> wrote: > Hi! > > I want to grab the contents of a Text widget when the frame it's on gets > destroyed. I tried TextWidget.bind(""... , but the widget is > gone > before the call gets made, and I'd really hate to do something wi

Re: Getting Tkinter Text contents before destruction

2006-02-06 Thread James Stroud
Bob Greschke wrote: > Hi! > > I want to grab the contents of a Text widget when the frame it's on gets > destroyed. I tried TextWidget.bind(""... , but the widget is gone > before the call gets made, and I'd really hate to do something with the > function that gets called with TextWidgetsFrame

Getting Tkinter Text contents before destruction

2006-02-06 Thread Bob Greschke
Hi! I want to grab the contents of a Text widget when the frame it's on gets destroyed. I tried TextWidget.bind(""... , but the widget is gone before the call gets made, and I'd really hate to do something with the function that gets called with TextWidgetsFrame.bind("", ..., since that one f