[python-win32] Skip Alt+F4

le dahut le.dahut at laposte.net
Mon Mar 17 12:02:36 CET 2008


I'm writting a Wx app and I want to skip Alt+F4. I've used somehting 
like that :
     def OnKeyDown(self, event):
         print event.AltDown(), event.GetKeyCode()
         if event.AltDown() and event.GetKeyCode() == wx.WXK_F4:
             print 'try to close'

Everything gets printed but my app closes anyway on Alt+F4, is there a 
way to skip this ?

More information about the python-win32 mailing list