Hans Meine wrote:
> Hi,
>
> I have read http://doc.freevo.org/2.0/SourceDoc/MainLoop and I wonder
> if nobody has used kaa.base with a Qt4 mainloop yet?
>
> It would be nice if Qt was supported as well as GTK.

IIRC crunchy had some problems with qt and used a thread ... or was it
with wx? I don't remember. Anyway, timer may behave a bit
different. What happens if a timer expires while it is still active?
Maybe it doesn't matter anymore, but it did. Right now the generic
notifier works like the gobject mainloop and that is easy for us.

> It seems that I would try to use the thread based notifier; I'll have to look 
> into that.  It looks like the second-best solution to me though.

You can use the gobject mainloop in two ways: use it _as_ mainloop or as
a second mainloop in a thread. That is a very nice feature.

> Wouldn't twisted provide for another, indirect integration of Qt?

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.

> Also, is there a nice way to use kaa coroutines interactively from IPython?

I do not think that will work.


Dischi

-- 
A conclusion is simply the place where you got tired of thinking.

-------------------------------------------------------------------------
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

Reply via email to