While I haven't used it myself, Qt4 has support for console applications.


The list can comment on whether or not this is fully supported in PyQt.

To clarify, you want to run a daemon of some sort. The daemon then, depending on what signals it gets, will launch a GUI application. Using a fork would be appropriate in this case. Forking will create a separate process. That new process can run independently of the parent process, so it can have a Qt application loop regardless of what the parent process does.

--kev

--
kevin at bang-splat dot com
The tools for managing paradox are still undeveloped. --Kevin Kelly



On Jul 16, 2006, at 10:09 PM, Fabian Steiner wrote:

Christophe Chailloleau-Leclerc wrote:
Fabian,

I'm not expert in Python,  but this seems a rather common system programming problem.
You must do a separate thing in a separate environment, keeping the original program running, but independent of this program.
Have a look to process creation functions (fork) - threads may not be appropriate since they will also imply two Qt loops in a single true process. IIRC, Qt provides abstraction layers for this, also.

Hope this helps

Christophe

First  of all, thank you for your reply.
A fork was also a thing I was thinking of but since I don't really know how to implement this I forgot about that idea. Fortunately, I have found the following python receipe which actually demonstrates what I would like to do: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012

Can I use this example for my purpose or might I overlook some problems coming along ...

Fabian

_______________________________________________
PyKDE mailing list    [email protected]

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to