On May 23, 10:45 am, Gandalf <[EMAIL PROTECTED]> wrote: > How can i bind function that handle the mouse clicking window X event > or clicking alt+F4 > > thanks
You really need to learn to ask good questions. Unless people dive into your previous posts, they won't know what Python GUI toolkit you are using, which version of said toolkit, which Python or which OS. Here's a good place to read about events in general: http://wiki.wxpython.org/EventPropagation If you use Google, you can look for the close event, which gives you this: http://www.wxpython.org/docs/api/wx.CloseEvent-class.html So you'll want to bind your frame to EVT_CLOSE. You can disable the "X" in your frame's window by using non-standard style parameters. Mike -- http://mail.python.org/mailman/listinfo/python-list