Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18241/src/tv

Modified Files:
        tvguide.py 
Log Message:
-Reset self.channel and self.selected when we come back to the guide.
-Revive page up/down with a hardcoded value of 9 steps.


Index: tvguide.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/tvguide.py,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** tvguide.py  11 Dec 2004 16:21:46 -0000      1.68
--- tvguide.py  13 Dec 2004 02:32:54 -0000      1.69
***************
*** 91,94 ****
--- 91,96 ----
          show the guide
          """
+         self.channel = pyepg.get_channel()
+         self.selected = ProgramItem(self.channel[self.current_time])
          self.refresh()
          MenuApplication.show(self)
***************
*** 136,142 ****
--- 138,150 ----
  
          if event == MENU_PAGEUP:
+             self.channel = pyepg.get_channel(self.channel, -9)
+             self.selected = ProgramItem(self.channel[self.current_time])
+             self.refresh()
              return True
  
          if event == MENU_PAGEDOWN:
+             self.channel = pyepg.get_channel(self.channel, 9)
+             self.selected = ProgramItem(self.channel[self.current_time])
+             self.refresh()
              return True
  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to