[Glade-users] how to allow widgets to be added to custom widgets
- From: tom at software6.net (Tom Vaughan)
- Subject: [Glade-users] how to allow widgets to be added to custom widgets
- Date: Mon, 28 Feb 2011 18:05:06 -0800
I've been very successful in creating custom widgets. I'd like to add
the ability to allow users to add more widgets to my custom widgets.
For example, I'd like my widget to have a "placeholder" that will
allow users to add any other widget, VBox, Button, etc. to my custom
widget.
This:
http://www.pygtk.org/articles/custom-widgets-glade/Custom_PyGTK_Widgets_in_Glade3-part-2.html
is what I've attempted to follow. However, the methods described here
appear to be obsolete. "import glade" no longer exists. "import
gtk.glade" does not have get_adaptor_for_type.
gobject.new('GladePlaceholder') fails.
What's the right way to do this today? This is on an up-to-date Ubuntu
Maverick box.
Thanks.
-Tom
--
Visit our website: http://software6.net/
Follow us on Twitter: http://twitter.com/software6
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]