Author: duncan
Date: Fri Sep 22 05:21:24 2006
New Revision: 8216
Modified:
branches/rel-1-5/freevo/src/event.py
branches/rel-1-5/freevo/src/tv/plugins/tvtime.py
Log:
[ 1563005 ] Add Event passing to tvtime
patch from Jonathan Isom
Modified: branches/rel-1-5/freevo/src/event.py
==============================================================================
--- branches/rel-1-5/freevo/src/event.py (original)
+++ branches/rel-1-5/freevo/src/event.py Fri Sep 22 05:21:24 2006
@@ -152,7 +152,8 @@
TV_START_RECORDING = Event('TV_START_RECORDING')
TV_CHANNEL_UP = Event('TV_CHANNEL_UP')
TV_CHANNEL_DOWN = Event('TV_CHANNEL_DOWN')
-
+TV_SEND_TVTIME_CMD = Event('TV_SEND_TVTIME_CMD')
+
#
# Global playing events
#
Modified: branches/rel-1-5/freevo/src/tv/plugins/tvtime.py
==============================================================================
--- branches/rel-1-5/freevo/src/tv/plugins/tvtime.py (original)
+++ branches/rel-1-5/freevo/src/tv/plugins/tvtime.py Fri Sep 22 05:21:24 2006
@@ -568,6 +568,10 @@
os.system('tvtime-command display_message \'%s\'' % event.arg)
return True
+ elif event == em.TV_SEND_TVTIME_CMD:
+ os.system('tvtime-command %s' % event.arg)
+ return True
+
elif event in em.INPUT_ALL_NUMBERS:
self.app.write('CHANNEL_%s\n' % event.arg)
-------------------------------------------------------------------------
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