binding an event to X 
Author Message
 binding an event to X

Does anyone know of a way to bind a callback event to the X button at the top right of a window?

--
Shawn



Mon, 31 Jan 2005 10:15:42 GMT  
 binding an event to X


Quote:
>Does anyone know of a way to bind a callback event to the X button at the top

right of a window?

   $MainWindow->protocol('WM_DELETE_WINDOW' => sub {#do whatever here});

Jack



Tue, 01 Feb 2005 02:32:43 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem with binding events on TkPerl canvas

2. Binding resize event

3. How to bind 'Back Space' event

4. Binding mouse event to a canvas

5. Binding event to entry widget

6. binding label event to checkbox

7. Ignoring key repeat events with bindings.

8. What is the resize event to bind to?

9. Trying to bind subroutine to event.

10. example code for binding, and handling visibilty events?

11. Bind event for Window resize?

12. scrolled event/bind help!

 

 
Powered by phpBB® Forum Software