<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">While I haven't used it myself, Qt4 has support for console applications.<DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="http://doc.trolltech.com/4.1/qcoreapplication.html">http://doc.trolltech.com/4.1/qcoreapplication.html</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The list can comment on whether or not this is fully supported in PyQt.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--kev</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>kevin at bang-splat dot com</DIV><DIV>The tools for managing paradox are still undeveloped. --Kevin Kelly</DIV><DIV><BR class="khtml-block-placeholder"></DIV></SPAN><BR class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV><DIV>On Jul 16, 2006, at 10:09 PM, Fabian Steiner wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Christophe Chailloleau-Leclerc wrote:</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Fabian,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I'm not expert in Python,<SPAN class="Apple-converted-space"> </SPAN>but this seems a rather common system programming problem.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You must do a separate thing in a separate environment, keeping the original program running, but independent of this program.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">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.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hope this helps</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Christophe</DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">First<SPAN class="Apple-converted-space"> </SPAN>of all, thank you for your reply.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">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: <A href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Can I use this example for my purpose or might I overlook some problems coming along ...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Fabian</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">PyKDE mailing list<SPAN class="Apple-converted-space"> </SPAN><A href="mailto:PyKDE@mats.imk.fraunhofer.de">PyKDE@mats.imk.fraunhofer.de</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://mats.imk.fraunhofer.de/mailman/listinfo/pykde">http://mats.imk.fraunhofer.de/mailman/listinfo/pykde</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>