[pygtk] Error with a pygtk program on Windows
Andreas Sommer
AndiDog at web.de
Sat Jul 18 17:41:49 WST 2009
I think I had a similar problem. You might want to use the recent Glade
version for Windows (3.6.7) - that did the trick for me. Make sure that
you also have the newest GTK+ release and chosen "GtkBuilder" as output
format.
HTH
nohics nohics wrote:
> Hello, I have a simple program that works on Linux but doesn't work on
> Windows:
>
> import gtk
>
> class MyClass:
> def __init__ (self):
> builder = gtk.Builder()
> builder.add_from_file("interface.glade")
> self.window1 = builder.get_object("window1")
> builder.connect_signals(self)
>
> def on_window1_destroy(self, widget, data=None):
> gtk.main_quit()
>
> if __name__ == "__main__":
> ok = MyClass()
> ok.window1.show()
> gtk.main()
>
> I have this error:
> Traceback (most recent call last):
> File "C:\prog.py", line 14, in <module>
> ok = MyClass()
> File "C:\prog.py", line 6, in __init__
> builder.add_from_file("interface.glade")
> gobject.GError: Balise non g├®r├®e┬á: ┬½┬árequires┬á┬╗
>
> Any idea ?
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090718/d1fee869/attachment.htm
More information about the pygtk
mailing list