[Tutor] Probem using protocols ?? WM_DELETE_WINDOW

Ajaya Babu ajaya@ncoretech.com
Sun, 23 Sep 2001 17:22:23 +0530


Dear all great people,

Thanks allot for your continious help...,


I am facing a critical problem.  I am using Tkinter to create a GUI
application.., This GUI application talks to another application which
already tested.., using socket interface, When we press the destroy button
"x", on the top of the window
I would like to inform the other application running that I am exiting
(python application is exiting),,

For that I used protocol to trap the WM_DELETE_WINDOW message and doing
necessary clean up like this
    def Clenup(self):
        EventExit().Serialize(self.Pipe)
        self.Running = 0
        del self.Pipe
        self.root.destroy()

but this is not woking in Linux machine. Linux (7.1) and python 2.1, when I
do this the window simpy not going at all
insted it is getting hanged...only option I've is explicitly kill that
window..,

But when I more self.root.destroy  statement to the top of the function
suprisingly window is going immidiately..

What I am doing wrong. Please suggest some thing that I can fix this
problem...,

Thanks and Regards,
Ajaya Babu