summaryrefslogtreecommitdiff
path: root/src/keyboard.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-05 21:42:27 +0200
committermathieui <mathieui@mathieui.net>2014-04-05 21:42:27 +0200
commit7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705 (patch)
treed15f357b9c0ac74ea2ec8585d4594b2b5bf32d4f /src/keyboard.py
parent8def5609d925c89004c906d67a7e1d3028706f32 (diff)
downloadpoezio-7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705.tar.gz
poezio-7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705.tar.bz2
poezio-7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705.tar.xz
poezio-7c7f9b2f4757a1ec4ab4a51d6dfd8d7254d0e705.zip
Do not instantiate Keyboard at module-level
Diffstat (limited to 'src/keyboard.py')
-rwxr-xr-xsrc/keyboard.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/keyboard.py b/src/keyboard.py
index 3e65d33c..34b1c185 100755
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -180,9 +180,8 @@ class Keyboard(object):
self.escape = False
return ret_list
-keyboard = Keyboard()
-
if __name__ == '__main__':
+ keyboard = Keyboard()
s = curses.initscr()
curses.noecho()
curses.cbreak()