Hi, I got a patch tpday I was waiting for some time now, it uses pyNotifier as a main loop and removes the rc.py stuff. So there are some changes now you need to keep in mind. First of all: why? The rc.py stuff was a bad hack, you could only add timer to get called. So plugins like the event input from Rob polled the socket. That's bad. The new notifier supports timer _and_ sockets. You can now register a socket and you get called when something is on that socket. We will need this for using mbus in the near future.
Important note: we need to keep the main loop alive. A function should do it stuff non blocking, if we do too much, the main loop won't be able to react on sockets / timer. Example: remove a mmpython.cache file in a dir with many items, use 1.5.1 and rescan. While rescanning, move a window above the freevo window and back again. You see that pygame doesn't update. That's because the pygame poll function isn't called while we scan. With the new cvs code, I keep the main loop alive and you see the window update again. So what you must do to keep the loop alive: when you can't return to the main loop but you are doing something, call notifier.step from time to time. Use the parameter False, False here to prevent Freevo From handling Events and the notifier from waiting (sleep) until something happens. Our main problem is now the downloading of stuff (e.g. imdb or amazon cover search). There will be a non blocking version of a http client the next days, you should use this one. More good news: as a side effect of the changes we now have keyboard input when using imlib2 display (so no need for pygame anymore when you use X). There are also no threads in childapp anymore (remember, keep the main loop alive or mplayer will stop playing). The last thread in rom_drives will be gone soon. One last note: the latest release of pyNotifier on mbus.org doesn't work for us. You can get the latest version from http://www.crunchy-home.de/download. You will find tgz and rpm files here. Please test this, Dischi -- Mustrum Ridcully did a lot for rare species. For one thing, he kept them rare. -- (Terry Pratchett, Lords and Ladies)
pgpAr1DG5H9kW.pgp
Description: PGP signature