<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi Everyone<BR>
I've been developing a gui that runs on a separate thread. I prefer to update the gui manually by calling main.iteration() in a defined interval. This works fine under ubuntu intriped.<BR>
*****************************************<BR>
class Gui (Thread)<BR>
....<BR>
def run(self):<BR>
self.__running = True<BR>
while self.__running:<BR>
time.sleep(1.0/self.__action_rate)<BR>
while gtk.events_pending():<BR>
gtk.main_iteration()<BR>
******************************************<BR>
<BR>
When I try to run my program under winxp I get the following error message:<BR>
"Error: H:\examen\zula\workspace_linux\BiosignalsStudio\src\BiosignalsStudio\modules\graphvisualizer\gui.py:29: GtkWarning: Im Modulpfad »thinice« konnte keine Themen-Engine gefunden werden,<BR>
self.__gui = gtk.glade.XML(self.__xml_filename)"<BR>
translated:<BR>
"no theme-engine could be found in module path "thinice"<BR>
<BR>
If I run the gtk.main() command not in a thread it works fine (with the big disadvantage of not being able to run commands AFTER the gtk.main() command)<BR>
<BR>
QUESTIONS:
<OL TYPE=1>
<LI TYPE=1 VALUE=1>Do I have to set the module path? How? Where to point to?
<LI TYPE=1 VALUE=2>Is there a possibility to call gtk.main() and not to "stay" in this call?
</OL>
<BR>
Thanks allot!!!<BR>
<BR>
Thomas
</BODY>
</HTML>