Hi,

I'm currently writing the last chapter of my Python-Book which
deals with the Toolkits Tk, Qt, wxWindows and Gtk.

I have an application which i developed GUI toolkit independant and
which i combine with a GUI in each of the chapters. So now I am
in the Gtk chapter. In order to have something brand new, I decided
to use GTK-2. I wrote the main application window and the rest of the
interface in PyGtk 1.99.7. Now - the dialogs are missing. I wanted to show
how one can create dialogs with glade and load them into the Python program.

I learned that glade-2 is at the moment not usable, so Damon
suggested giving the glade in the gnome2 cvs branch a try.

Ok, I constructed a dialog and saved the project file - but when
trying to import it via gtk.glade.XML( filename ) I get

--------------------------------------------------------------------------
[gandalf@pegasus-b glade]$ python glade-demo.py /tmp/kontaktdialog.glade

glade-demo.py (pid:868): libglade-WARNING **: Expected <glade-interface>.
Got <GTK-Interface>.

glade-demo.py (pid:868): libglade-WARNING **: did not finish in
PARSER_FINISH state!
Traceback (most recent call last):
  File "glade-demo.py", line 12, in ?
    xml = glade.XML(fname)
RuntimeError: could not create GladeXML object
--------------------------------------------------------------------------

Unfortunately my deadline is in three weeks, so I'm afraid I can't wait
until gnome-2 is out. Do you have any ideas for me, please?

Yours,

Mickey.:M:
--
Michael 'Mickey' Lauer . . . . . . . . . [EMAIL PROTECTED]
How could anyone know me - when I don't even know myself ?
_______________________________________________
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