<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. 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> global rtk<br> while True:<br> sleep(60)<br> try:<br> rtk=Tk(screenName=':0.0')<br> except:<br> continue<br> break<br> 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>