TKinter -- '<Destroy>' event executing more than once?

Christopher Subich spam.csubich+block at block.subich.spam.com
Sun Jun 12 01:41:31 EDT 2005


jepler at unpythonic.net wrote:

> Bindings created on a Toplevel or Tk widget apply to *all* widgets in
> the same toplevel. So you're seeing a <Destroy> event for each widget
> you create...

Oh. :)   Is there a way of binding the event just to the window itself,
or should I just check that the widget referenced in the 'event'?
[update: not even sure how I'd do this anyway, since the widget returned
in the event "is not" the root widget]



More information about the Python-list mailing list