Hi (new here),
I've seen the PyGTK FAQ 22.7 [1] about Custom widgets in Glade files
and I found an error at the lines:
class MyGladeApp:
def __init__ (self):
self.glade = gtk.glade.XML('/path/to/gladefile.glade')
self.glade.set_custom_handler(self.get_custom_handler)
When I made some tests, I received:
libglade-WARNING **: could not find widget creation function
This doesn't worked for me. It just worked when I made something like:
class MyGladeApp:
def __init__ (self):
gtk.glade.set_custom_handler(self.get_custom_handler)
self.glade = gtk.glade.XML('/path/to/gladefile.glade')
First, it's not a self.glade method, but gtk.glade function.
Second: It just worked when "set_custom_handler" comes before the XML
loading (why this?).
What do you think about it? I didn't just changed the FAQ because I'd
like to discuss before.
[1] http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq22.007.htp
--
Até mais.. (English's not my native language)
João Paulo da Silva
LinuxUser #355914
ICQ: 265770691 | Jabber: [EMAIL PROTECTED]
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/