[pygtk] Error with a pygtk program on Windows

nohics nohics nohics at gmail.com
Sat Jul 18 10:44:28 WST 2009


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 ?
-------------- section suivante --------------
Une pi�ce jointe HTML a �t� nettoy�e...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090718/ae66802c/attachment.htm 


More information about the pygtk mailing list