On May 23, 6:25 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > 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
OK you right. I use WX on windows XP. I didn't understood how to use this wx.CloseEvent function. i really struggle with my poor english to understand this language, so your help is crucial for my progress and i appreciate it Thanks -- http://mail.python.org/mailman/listinfo/python-list