putting interfaz de glade en python

He creado una interfaz gráfica de usuario en Glade que quiero poner en un programa de Python. Estaba adaptando las instrucciones de un tutorial que encontré en línea para cargar en mi archivo glade (http://www.pygtk.org/articles/pygtk-glade-gui/Creating_a_GUI_using_PyGTK_and_Glade.htm). Cuando tuve problemas, probé algo básico (un botón) llamándolo de la misma manera que en ese tutorial, y copié pegando su código, y todavía no funcionó. También eché un vistazo a (http://www.linuxjournal.com/article/6586?page=0,2), que tiene una función que se llama de forma ligeramente diferente ("self.wTree = gtk.glade.XML (gladefile, windowname) "en lugar de sin windowname), e implementé un equivalente con el mío y eso no lo solucionó. Definitivamente tengo pygtk funcionando, hice algo sin usar glade antes y funcionó bien. El error que obtengo es:

/usr/share/themes/NOX/gtk-2.0/gtkrc:233: Murrine configuration option "gradients" 
 is no longer supported and will be ignored.

(helloWorld.py:9804): libglade-WARNING **: Expected <glade-interface>.  Got    
 <interface>.

(helloWorld.py:9804): libglade-WARNING **: did not finish in PARSER_FINISH state
Traceback (most recent call last):
File "helloWorld.py", line 31, in <module>
hwg = HellowWorldGTK()
File "helloWorld.py", line 22, in __init__
self.wTree = gtk.glade.XML(self.gladefile) 
RuntimeError: could not create GladeXML object

Estoy ejecutando xubuntu 11.04. La configuración de Murrine surge cuando se abre cualquier aplicación gtk, pero la incluí en caso de que sea relevante. Aquí está el código que tomé del tutorial (pero no funciona)

#!/usr/bin/env python

import sys
try:
    import pygtk
    pygtk.require("2.0")
except:
    pass
try:
    import gtk
    import gtk.glade
except:
    sys.exit(1)

class HellowWorldGTK:
"""This is an Hello World GTK application"""

def __init__(self):

    #Set the Glade file
    self.gladefile = "PyHelloWorld.glade"  
    self.wTree = gtk.glade.XML(self.gladefile) 

    #Get the Main Window, and connect the "destroy" event
    self.window = self.wTree.get_widget("MainWindow")
    self.window.show()
    if (self.window):
        self.window.connect("destroy", gtk.main_quit)


if __name__ == "__main__":
    hwg = HellowWorldGTK()
    gtk.main()

Respuestas a la pregunta(5)

Su respuesta a la pregunta