[Glade-users] adding plot widget to a GLADE/Py-Gtk application
- From: vanandel ucar edu (Joe Van Andel)
- Subject: [Glade-users] adding plot widget to a GLADE/Py-Gtk application
- Date: Wed, 27 Jun 2001 15:27:19 -0600
I'm using Python 2.1 with
libglade-0.16
glade-0.5.11
gnome-python-1.4.1
gtk+extra-0.99.12
python-gtkextra-0.16
I'm building an application using PyGtk with the UI built by glade. At
runtime, I use libglade to create the widgets in the glade XML file.
The application needs to use the GtkPlot() widget provided by GtkExtra.
How do I do this?
Glade's 'Custom' widget looks like it might help, but I don't know how
to define the Python class or procedure necessary to create a GtkPlot
widget within the Glade framework. I tried adding a 'Custom' widget,
and setting the 'Creation Function' to 'create_plot', which I defined as
a Python function.
At run time, glade reports:
** WARNING **: could not find widget creation function
and the dynamically created UI has the text
[custom widget creation failed]
Thanks much.
--
Joe VanAndel
National Center for Atmospheric Research
http://www.atd.ucar.edu/~vanandel/
Internet: vanandel ucar edu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]