[wxPython] Destroy a window safly and fast

Thx,

10 min before i read your post i see that the code stop at
showmodal().
Now i set at the creation of self.commentwin

EVT_ENTER_WINDOW(self.panel, self.InitOnExitEvent)

This event creates an EVT_LEAVE_WINDOW Event,
which will be fired if the mouse leaves the coordinates of
the commentwin. (i use the coordinates of the win[x,y,w,h])
not the win itself, because if i move the mouse over the statictext
the event will be fired.
Why? I leave the win and entered the statictext Control. Crazy..
Although the statictext is part of the window.

But now it works.

Thx, thx, thx....
read ya, reen

Rene Freund
rene@meder.de