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

Modified Files:
        program_search.py 
Log Message:
use eventhandler from letter box

Index: program_search.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/program_search.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** program_search.py   18 Feb 2004 21:55:11 -0000      1.12
--- program_search.py   21 Feb 2004 19:33:56 -0000      1.13
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.13  2004/02/21 19:33:56  dischi
+ # use eventhandler from letter box
+ #
  # Revision 1.12  2004/02/18 21:55:11  dischi
  # update to new gui code
***************
*** 161,199 ****
  
          if self.get_selected_child() == self.lbg:
!             if event == em.INPUT_LEFT:
!                 self.lbg.change_selected_box('left')
!                 self.draw()
!                 return
! 
!             elif event == em.INPUT_RIGHT:
!                 self.lbg.change_selected_box('right')
                  self.draw()
!                 return
  
!             elif event == em.INPUT_ENTER:
                  self.searchProg(self.lbg.get_word())
                  self.draw()
!                 return
! 
!             elif event == em.INPUT_UP:
!                 self.lbg.get_selected_box().charUp()
!                 self.draw()
!                 return
! 
!             elif event == em.INPUT_DOWN:
!                 self.lbg.get_selected_box().charDown()
!                 self.draw()
!                 return
  
!             elif event == em.MENU_PAGEDOWN:
                  self.lbg.get_selected_box().toggle_selected()
                  self.results.toggle_selected_index(0)
                  self.draw()
!                 return
! 
!             elif event in em.INPUT_ALL_NUMBERS:
!                 self.lbg.get_selected_box().cycle_phone_char(event)
!                 self.draw()
!                 return
  
          elif self.get_selected_child() == self.results:
--- 164,181 ----
  
          if self.get_selected_child() == self.lbg:
!             if self.lbg.eventhandler(event):
                  self.draw()
!                 return True
  
!             if event == em.INPUT_ENTER:
                  self.searchProg(self.lbg.get_word())
                  self.draw()
!                 return True
  
!             if event == em.MENU_PAGEDOWN:
                  self.lbg.get_selected_box().toggle_selected()
                  self.results.toggle_selected_index(0)
                  self.draw()
!                 return True
  
          elif self.get_selected_child() == self.results:



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to