Update of /cvsroot/freevo/freevo/src/application
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4541/src/application
Modified Files:
childapp.py
Log Message:
adjust to new kaa.notifier popen interface
Index: childapp.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/application/childapp.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** childapp.py 21 Jul 2005 18:42:50 -0000 1.9
--- childapp.py 5 Aug 2005 17:22:04 -0000 1.10
***************
*** 172,179 ****
Init the object and start the process.
"""
! self.handler = handler
! self.has_display = has_display
!
! if self.has_display:
gui.display.hide()
--- 172,176 ----
Init the object and start the process.
"""
! if has_display:
gui.display.hide()
***************
*** 189,194 ****
# start the process
! kaa.notifier.Process.__init__(self, cmd, logname,
! callback=self.finished)
# renice the process
--- 186,196 ----
# start the process
! kaa.notifier.Process.__init__(self, cmd, logname)
!
! self.signals["stdout"].connect(handler.child_stdout)
! self.signals["stderr"].connect(handler.child_stderr)
! if has_display:
! self.signals["died"].connect(gui.display.show)
! self.signals["died"].connect(handler.child_finished)
# renice the process
***************
*** 196,220 ****
os.system('%s %s -p %s 2>/dev/null >/dev/null' % \
(config.CONF.renice, prio, self.child.pid))
-
-
- def stdout_cb(self, line):
- """
- Handle child stdout (send to handler).
- """
- self.handler.child_stdout(line)
-
-
- def stderr_cb(self, line):
- """
- Handle child stderr (send to handler).
- """
- self.handler.child_stderr(line)
-
-
- def finished(self):
- """
- Callback when child is finished.
- """
- if self.has_display:
- gui.display.show()
- self.handler.child_finished()
--- 198,199 ----
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog