Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5540/src/tv
Modified Files:
tvmenu.py
Log Message:
fix coming up and other parts of the tv menu
Index: tvmenu.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/tvmenu.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** tvmenu.py 6 Jan 2005 18:49:04 -0000 1.23
--- tvmenu.py 7 Jan 2005 20:41:03 -0000 1.24
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.24 2005/01/07 20:41:03 dischi
+ # fix coming up and other parts of the tv menu
+ #
# Revision 1.23 2005/01/06 18:49:04 dischi
# remove old tv_util
***************
*** 80,87 ****
--- 83,99 ----
import tvguide
+ from record.client import recordings
from directory import DirItem
from gui import AlertBox
+ class Info(Item):
+ def __getitem__(self, key):
+ if key in ('comingup', 'running'):
+ return getattr(recordings, key)
+ if key == 'recordserver':
+ return recordings.server
+ return Info.__getitem__(self, key)
+
class TVMenu(Item):
***************
*** 112,117 ****
items += p.items(self)
! menuw.pushmenu(menu.Menu(_('TV Main Menu'), items, item_types = 'tv
main menu'))
!
def start_tvguide(self, arg, menuw):
--- 124,131 ----
items += p.items(self)
! m = menu.Menu(_('TV Main Menu'), items, item_types = 'tv main menu')
! m.infoitem = Info()
! menuw.pushmenu(m)
!
def start_tvguide(self, arg, menuw):
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog