Getting Tkinter Text contents before destruction

Eric Brunel eric_brunel at despammed.com
Thu Feb 9 09:11:31 EST 2006


On Mon, 06 Feb 2006 19:32:52 -0800, James Stroud <jstroud at ucla.edu> 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 the destroy *command* gets called, but doesn't inform the  
Python interface object. The destroy method is only a way to call tk's  
destroy command, but overloading it has an effect only when called from  
Python, not from the underlying tk layer.
-- 
python -c "print ''.join([chr(154 - ord(c)) for c in  
'U(17zX(%,5.zmz5(17;8(%,5.Z65\'*9--56l7+-'])"



More information about the Python-list mailing list