Haris Bogdanovic wrote:

When I do

gtk.glade.XML("filename.glade")

I get the error

Could not create GladeXML object.

What is the problem here ?

Is the file a valid glade file? If so, it should start with something like this:


<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd";>

<glade-interface>
...

If the DTD has been registered in the XML catalog, you should also be able to run it through xmllint to validate it against the DTD.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to