demos/03_application.py
changeset 111 b055add74b18
parent 109 105b1affc3c2
child 114 26c02bd94bd9
--- a/demos/03_application.py	Wed Sep 03 19:13:37 2014 +0200
+++ b/demos/03_application.py	Wed Sep 03 19:14:43 2014 +0200
@@ -25,8 +25,8 @@
 app.root_window.add(field)
 app.root_window.focus_widget = field
 
-def on_keypress(keyname, char, mod):
-    if keyname == 'escape':
+def on_keypress(ev):
+    if ev.keyname == 'escape':
         app.stop()
 
 app.window_manager.sig_keypress.connect(on_keypress)