-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dirk Meyer wrote: | 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)
This only works with the rel-1 branch, for rel-1-7 you will need to use threads. Have a look at the idlebar/weather.py plug-in for an example of this. Duncan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHijgmNi6l+Xvys44RApB9AJ9GItw94nlAT3tv1pkUkFXmoNgxJQCfezKf gog25EtE8++oIyQkJa2apgY= =B+P4 -----END 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 Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel