[pygtk] Pygtk + glade + inheritance

Adam Tauno Williams awilliam at whitemice.org
Fri Mar 2 21:44:00 WST 2012


On Fri, 2012-03-02 at 12:02 +0100, sylvain mouquet wrote:
> I am looking for a solution for using pygtk and glade with the
> inheritance.
> In glade, i create a new GtkWindow with a GtkButton. In python, i
> create a glade builder and i catch the button in a variable :
> mybutton = builder.get_objet("button1")
> 
> i wish to use my own GtkButton like gtkmm  :
> DerivedButton* dbutton = 0;
> builder->get_widget_derived("button1",dbutton);
> (cf
> http://developer.gnome.org/gtkmm-tutorial/3.2/sec-builder-using-derived-widgets.html.en)
> It's possible to do this ?

Probably not much difference between this an using Glade with custom
widgets.

<http://www.pygtk.org/articles/custom-widgets-glade/Custom_PyGTK_Widgets_in_Glade3-part-2.html>

Maybe.


-- 
System & Network Administrator [ LPI & NCLA ]
<http://www.whitemiceconsulting.com>
OpenGroupware Developer <http://www.opengroupware.us>
Adam Tauno Williams



More information about the pygtk mailing list