Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv7206
Modified Files:
main.py
Log Message:
changes to the new Event.handler and Childapp2
Index: main.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/main.py,v
retrieving revision 1.98
retrieving revision 1.99
diff -C2 -d -r1.98 -r1.99
*** main.py 7 Dec 2003 19:40:30 -0000 1.98
--- main.py 10 Dec 2003 19:01:29 -0000 1.99
***************
*** 11,14 ****
--- 11,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.99 2003/12/10 19:01:29 dischi
+ # changes to the new Event.handler and Childapp2
+ #
# Revision 1.98 2003/12/07 19:40:30 dischi
# convert OVERSCAN variable names
***************
*** 358,361 ****
--- 361,366 ----
_debug_('Main loop starting...',2)
+ from childapp import running_children
+
while 1:
***************
*** 379,390 ****
p.poll_counter = 0
p.poll()
time.sleep(0.01)
- for p in poll_plugins:
- if not (rc_object.app and p.poll_menu_only):
- p.poll_counter += 1
- if p.poll_counter == p.poll_interval:
- p.poll_counter = 0
- p.poll()
for p in eventlistener_plugins:
--- 384,393 ----
p.poll_counter = 0
p.poll()
+
+ for child in running_children:
+ child.poll()
+
time.sleep(0.01)
for p in eventlistener_plugins:
***************
*** 394,397 ****
--- 397,403 ----
event.arg()
+ elif event.handler:
+ event.handler(event=event)
+
# Send events to either the current app or the menu handler
elif rc_object.app:
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog