<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Mainloop is included.&nbsp; Basically, the daemon starts a thread that waits for KDE, and does its<br>job in the main thread. The function that is started looks like this:<br><br>def inittk():<br>&nbsp; global rtk<br>&nbsp; while True:<br>&nbsp;&nbsp;&nbsp; sleep(60)<br>&nbsp;&nbsp;&nbsp; try:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rtk=Tk(screenName=':0.0')<br>&nbsp;&nbsp;&nbsp; except:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue<br>&nbsp;&nbsp;&nbsp; break<br>&nbsp; rtk.mainloop()<br><br><br>I omitted labels, entries, the undecoration, withdrawal... but I guess you have the idea of what I<br>try to accomplish.<br><br>The only thing that goes to my mind is that I start mainloop, but then, as the function and the thread are going out of scope, they take mainloop with them.<br><br>Pointers are
 welcomed...<br><br>Thanks,<br>Sorin<br></div></div><br>

<hr size=1>Check out <a href="http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail beta</a> - Fire up a more powerful email and get things done faster.</body></html>