Update of /cvsroot/freevo/freevo/src/image
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22125/src/image
Modified Files:
viewer.py
Log Message:
adjust to new event interface
Index: viewer.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/image/viewer.py,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** viewer.py 13 Jul 2005 19:28:40 -0000 1.82
--- viewer.py 16 Jul 2005 09:48:22 -0000 1.83
***************
*** 272,276 ****
# Notify everyone about the viewing
if self.last_item != item:
! self.post_event(Event(PLAY_START, item))
self.last_image = image
--- 272,276 ----
# Notify everyone about the viewing
if self.last_item != item:
! PLAY_START.post(item)
self.last_image = image
***************
*** 287,292 ****
# Don't stop the viewer application, just send a PLAY_END
# event and do the Application.stop() later
! self.post_event(Event(PLAY_END, self.item,
! handler = self.eventhandler))
--- 287,293 ----
# Don't stop the viewer application, just send a PLAY_END
# event and do the Application.stop() later
! event = Event(PLAY_END, self.item)
! event.set_handler(self.eventhandler)
! event.post()
***************
*** 317,325 ****
if event == PAUSE or event == PLAY:
if self.slideshow:
! self.post_event(Event(OSD_MESSAGE, arg=_('pause')))
self.slideshow = False
self.sshow_timer.stop()
else:
! self.post_event(Event(OSD_MESSAGE, arg=_('play')))
self.slideshow = True
self.sshow_timer.start(1000)
--- 318,326 ----
if event == PAUSE or event == PLAY:
if self.slideshow:
! OSD_MESSAGE.post(_('pause'))
self.slideshow = False
self.sshow_timer.stop()
else:
! OSD_MESSAGE.post(_('play'))
self.slideshow = True
self.sshow_timer.start(1000)
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog