Hi Dischi! On Donnerstag 16 Oktober 2008, Dirk Meyer wrote: > Dirk Meyer wrote: > > Yes. There is a thread based twisted support that will work with _all_ > > mainloops twisted supports. The kaa mainloop runs in a thread and wakes > > up twisted when it wants to do something. That generic idea is also > > possible for qt. See nf_thread.py, the TwistedLoop is only three lines > > of code. > > I give up. Why does anyone want to use qt? I don't want to start a > flamewar but the slot and event stuff is _very_ confusing.
Heh - I like Qt very much, and I wonder how someone responsible for kaa's async stuff can find regular signal/slot mechanisms and event loops confusing.. ;-) In fact, in Qt you do not use events directly very often; usually you just overload one of the virtual functions to which specific events are dispatched, and the signal/slot stuff is very convenient. (In the C++ world, it stands out in terms of ease of use, in python there are other fine solutions of course.) > I tried to > integrate qt and I will check in an example if someone tells me how to > add a callback from a thread to be called in the mainloop. I think I managed to write an example now myself (attached). I also tried to separate the kaa mainloop integration from the test code, in order to prepare for integration into kaa.base. One thing that does not yet work is stopping the program; I need to kill python with -9. :-(( Hope that you can fix that. > And BTW, the > qt integration will only be in the test directory and not directly in > the src because qt conflicts with the kaa.base LGPL licence. Oh, does it? That would be very sad. :-( -- Ciao, / / .o. /--/ ..o / / ANS ooo
test_qt_mainloop.py
Description: application/python
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel