[pygtk] custom widget w/ glade
Sandro Dentella
sandro at e-den.it
Wed Feb 8 20:21:59 WST 2006
Hi all,
I hope this is the write place for my question...
I'm trying to add a custom widget to glade (dateedit that was sent on
this list a month ago). Th FAQ is not that clear in my opinion and the
documentation... points to the faq
(http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq22.007.htp)
I manage to have the dateedit widget appear correctly but if I have 2
custom widgets, the second registered function hides the first one:
gtk.glade.set_custom_handler(sd_widget)
gtk.glade.set_custom_handler(mydateedit)
in this case myedateedit conceals sd_widget so that even if in glade I
have:
<widget class="Custom" id="custom1">
<property name="visible">True</property>
<property name="creation_function">sd_widget</property>
<property name="string1">sandro</property>
<property name="string2">dentella</property>
<property name="int1">1</property>
<property name="int2">2</property>
</widget>
'mydateedit' gets called instead.
Should I have one single create function for all widgets, that behaves
differently according to function_name and widget_name? If this is the
case why should I use "create_function" property?
TIA
sandro
*:-)
--
Sandro Dentella *:-)
e-mail: sandro a e-den.it
http://www.tksql.org TkSQL Home page - My GPL work
More information about the pygtk
mailing list