Tanja wrote: > Is it possible to do such things with the DaemonPlugin? Or do I need > an extra helper script? I guess I need to start a new thread? How do > I do that? What do I have to consider for that? Is there a part in > freevo, where something similar is already done? After all that > talking about notifier here lately, is there maybe a new more > freevo2-ish way to achieve this?
Right, kaa.notifier is the way to go. Freevo 2 has no DaemonPlugins
anymore, every plugin kann schedule stuff as it wants. If the action
is blocking (e.g. reading a website), you could also use a thread with
kaa.notifier.
def do_something_in_a_thread(arg1, arg2):
[...]
def result(r):
handle result in mainloop
kaa.notifier.Thread(do_something_in_a_thread, 1, 7).start().connect(result)
--
Love is Hate. War is Peace. Windows is stable.
pgpNnKRcA44HP.pgp
Description: PGP signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
