]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/hangman.py
Fixes to avoid an endless event looping for wxGTK
[wxWidgets.git] / utils / wxPython / demo / hangman.py
index e5c4d0598245d0e8612d5ad94bfe39ab9e2e7e1c..3f2c6da5c6c948a2ae17602f359e87b1e57bb725 100644 (file)
@@ -386,9 +386,11 @@ class MyFrame(wxFrame):
 
     def OnChar(self, event):
         if not self.in_progress:
+            #print "new"
             self.OnGameNew(None)
             return
         key = event.KeyCode();
+        #print key
         if key >= ord('A') and key <= ord('Z'):
             key = key + ord('a') - ord('A')
         key = chr(key)