Hi Everyone
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.
*****************************************
class Gui (Thread)
....
    def run(self):
        self.__running = True
        while self.__running:
            time.sleep(1.0/self.__action_rate)
            while gtk.events_pending():
                gtk.main_iteration()
******************************************

When I try to run my program under winxp I get the following error
message:
"Error: H:\examen\zula\workspace_linux\BiosignalsStudio\src
\BiosignalsStudio\modules\graphvisualizer\gui.py:29: GtkWarning: Im
Modulpfad »thinice« konnte keine Themen-Engine gefunden werden,
  self.__gui = gtk.glade.XML(self.__xml_filename)"
translated:
"no theme-engine could be found in module path "thinice"

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)

QUESTIONS:

     1. Do I have to set the module path? How? Where to point to?
     2. Is there a possibility to call gtk.main() and not to "stay" in
        this call?


Thanks allot!!!

Thomas
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to