Tk novice question

Stefan Kersten steve at k-hornz.de
Thu Mar 30 23:24:31 CEST 2000


Thu, 30 Mar 2000 19:37:01 +0000, and Joseph Santaniello states:
>How do I trap window close events for a given window? I want to (after a
>window is closed by hitting the X or equiv) to cycle through a list of
>spawned windows, but I don't ever know when my window gets closed. Where
>should I look for info on how to do this?

Callbacks on widgets (on Destroy, KeyPress... events) in Tk are
registered with the bind command. The manual page in the Tcl
documentation should get you started (I don't know how this is done
in Tkinter, though).

<sk>

-- 
K )---+---( H )( O )( R )( N )( Z )
  |   +-( http://www.k-hornz.de )
  +--------( steve at k-hornz.de )
  +( we're the dot in godot )




More information about the Python-list mailing list