Author: dmeyer
Date: Fri Jan  5 14:06:04 2007
New Revision: 2352

Modified:
   trunk/base/src/input/lirc.py

Log:
expose signal direct in the module

Modified: trunk/base/src/input/lirc.py
==============================================================================
--- trunk/base/src/input/lirc.py        (original)
+++ trunk/base/src/input/lirc.py        Fri Jan  5 14:06:04 2007
@@ -54,8 +54,8 @@
 
 # make sure we have the lirc signal, no matter
 # if lirc is working or not
-kaa.notifier.signals["lirc"] = kaa.notifier.Signal()
-
+signal = kaa.notifier.Signal()
+kaa.notifier.signals["lirc"] = signal
 
 def _handle_lirc_input():
     """
@@ -94,7 +94,7 @@
 
     _last_key_time = now
     for code in codes:
-        kaa.notifier.signals["lirc"].emit(code)
+        signal.emit(code)
         _last_code = code
 
     return True
@@ -158,5 +158,5 @@
     init()
     def cb(code):
         print "CODE", code
-    kaa.notifier.signals["lirc"].connect(cb)
+    signal.connect(cb)
     kaa.notifier.loop()

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to