Why is Pmw.Blt sending Destroy messages to my Toplevel?

Phlip phlip_cpp at my-deja.com
Thu Aug 15 17:54:43 CEST 2002

> This, unfortunately, works:
> def closing(event):
>     if len(event.widget) == len('.12345678'):
>         print 'closing!', event.type

Okay, end of crisis. This is more correct:

 def closing(event):
     if event.widget == frame._w:
         print 'closing!', event.type

Blt sends close messages because when you remove all its elements they are
little windows and they go away.

I'm sure there's a wrapper for the semiprivate variable _w, but everyone
else is doing it...


More information about the Python-list mailing list