changeset 42:585302e84c1f

fixed typo + added comment
author Goffi <goffi@goffi.org>
date Sun, 20 Feb 2011 00:37:54 +0100
parents 589e5e22f8f1
children e49d8f289a73
files examples/file_dialog.py examples/menu.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/examples/file_dialog.py	Sun Feb 20 00:32:57 2011 +0100
+++ b/examples/file_dialog.py	Sun Feb 20 00:37:54 2011 +0100
@@ -33,7 +33,7 @@
     raise urwid.ExitMainLoop()
     
 def test_quit(input):
-    """We leave is user press 'esc'"""
+    """We leave if user press 'esc'"""
     if input in ('esc',):
         raise urwid.ExitMainLoop()
 
--- a/examples/menu.py	Sun Feb 20 00:32:57 2011 +0100
+++ b/examples/menu.py	Sun Feb 20 00:37:54 2011 +0100
@@ -55,11 +55,11 @@
         return self.menu 
 
     def keyHandler(self, input):
-        """We leave is user press 'esc'"""
+        """We leave if user press a quit char"""
         if input in ('esc','q','Q'):
             raise urwid.ExitMainLoop()
         else:
-            return self.menu.checkShortcuts(input)
+            return self.menu.checkShortcuts(input) #needed to manage shortcuts
 
 demo = MenuDemo()
 demo.run()