Update of /cvsroot/freevo/freevo/src/application
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22125/src/application
Modified Files:
base.py childapp.py mplayer.py
Log Message:
adjust to new event interface
Index: childapp.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/application/childapp.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** childapp.py 30 Jun 2005 02:35:45 -0000 1.4
--- childapp.py 16 Jul 2005 09:48:21 -0000 1.5
***************
*** 42,46 ****
import sysconfig
import config
- import eventhandler
import gui
--- 42,45 ----
***************
*** 176,180 ****
if hasattr(handler, 'item'):
# send PLAY_START event
! eventhandler.post(Event(PLAY_START, handler.item))
# get a name for debug logging of the process
--- 175,179 ----
if hasattr(handler, 'item'):
# send PLAY_START event
! PLAY_START.post(handler.item)
# get a name for debug logging of the process
***************
*** 213,218 ****
"""
if hasattr(self.handler, 'item'):
! event = Event(PLAY_END, self.handler.item)
! eventhandler.post(event)
return None
--- 212,216 ----
"""
if hasattr(self.handler, 'item'):
! PLAY_END.post(self.handler.item)
return None
***************
*** 224,228 ****
event = self.stop_event()
if event:
! eventhandler.post(event)
if self.has_display:
gui.display.show()
--- 222,226 ----
event = self.stop_event()
if event:
! event.post()
if self.has_display:
gui.display.show()
Index: mplayer.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/application/mplayer.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** mplayer.py 25 Jun 2005 08:55:40 -0000 1.4
--- mplayer.py 16 Jul 2005 09:48:21 -0000 1.5
***************
*** 234,240 ****
Return the stop event send through the eventhandler
"""
! return Event(PLAY_END, self.stop_reason,
! handler=self.handler.eventhandler)
!
def stdout_cb(self, line):
--- 234,241 ----
Return the stop event send through the eventhandler
"""
! event = Event(PLAY_END, self.stop_reason)
! event.set_handler(self.handler.eventhandler)
! return event
!
def stdout_cb(self, line):
Index: base.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/application/base.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** base.py 16 Jul 2005 08:41:12 -0000 1.8
--- base.py 16 Jul 2005 09:48:21 -0000 1.9
***************
*** 63,67 ****
self.animated = animated
- self.post_event = self.__handler.post
self.visible = False
self.stopped = False
--- 63,66 ----
-------------------------------------------------------
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