[pygtk] windows - pygtk - thread - main.iteration problem

Thomas Wielatt DR_TOe at web.de
Sun Jan 11 20:35:30 WST 2009


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
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090111/6754435b/attachment.htm 


More information about the pygtk mailing list