--- a/demo_editor.py Fri Dec 14 10:32:43 2012 +0100
+++ b/demo_editor.py Sun Dec 16 20:49:54 2012 +0100
@@ -17,7 +17,7 @@
class MyApplication(Application):
def __init__(self):
Application.__init__(self)
- self.top.connect('keypress', self.globalkeypress)
+ self.top.connect('keypress', self.on_keypress)
#edit = EditField(50, 'DlouhyTest12')
#self.top.add(edit)
@@ -48,7 +48,7 @@
self.button.label = 'YES'
- def globalkeypress(self, keyname, char):
+ def on_keypress(self, keyname, char):
if keyname == 'escape':
self.terminate()
if keyname == 'f1':