This issue was already covered on the list.  Apparently it comes from
LibXML or something, not from pygtk / LibGlade.

On Thu, 2002-05-16 at 17:42, Charles Waldman wrote:
> 
> If you try to do GladeXML("somefile.glade") where "somefile.glade"
> does not exist or is not readable, you get a "WARNING: document is not
> well-formed" message.  This error message is misleading; it does not
> lead one to the real cause of the problem.  Hence this trivial patch:
> 
> --- libglade.py.orig  Thu May 16 16:32:26 2002
> +++ libglade.py       Thu May 16 16:34:01 2002
> @@ -11,6 +11,8 @@
>  class GladeXML(_gtk.GtkData):
>       def __init__(self, filename=None, root=None, domain=None, _obj=None):
>               if _obj: self._o = _obj; return
> +             open(filename, 'r')  ##raises an exception if file does not exist
> +             close(filename)   ## or is not readable
>               self._o = _libglade.glade_xml_new_with_domain(filename, root,
>                                                             domain)
>       class __cnv:
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



_______________________________________________
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