Exemple #1
0
 def on_char_hook(self, event):
     # handler for EVT_CHAR_HOOK events on preview windows
     if event.GetKeyCode() == wx.WXK_ESCAPE:
         wx.FindWindowById(event.GetId()).GetTopLevelParent().Close()
         return
     misc.handle_key_event(event, "preview")
Exemple #2
0
 def on_char_hook(self, event):
     misc.handle_key_event(event, "design")