[PyKDE] Starting a PyQt application from a console daemon
Kevin Cureton
kevin at bang-splat.com
Mon Jul 17 18:52:00 BST 2006
While I haven't used it myself, Qt4 has support for console
applications.
http://doc.trolltech.com/4.1/qcoreapplication.html
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 PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060717/bf4bb2f9/attachment.html
More information about the PyQt
mailing list