DeprecationWarning in 0.74

Don't use a beta test version of pygtk when a newer stable version is
available. Upgrade to pygtk 2.4.1 (2.4.0 has a bug when used with
matplotlib).

Matplotlib with pygtk <2.4.0 uses the GTK+ 2.2 GtkToolbar API
Matplotlib with pygtk 2.4.0 (or higher) uses the GTK+ 2.4 GtkToolbar API

My guess is that you are running the 2.3.x beta version of pygtk which
gives a DeprecationWarning when using a GTK+ 2.2 GtkToolbar function.

Steve

···

On Fri, 2005-04-01 at 20:16 -0800, matplotlib-users- request@lists.sourceforge.net wrote:

While using matplotlib 0.74 in Mandrake 10.1, I got the following warning.
Would you tell me how to avoid the warning message? Thanks.

>>> pylab.plot([1,2,3,4])
/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py:533:
DeprecationWarning:
  getattr(self, callback)
/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py:523:
DeprecationWarning:
  self.append_space()
/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py:536:
DeprecationWarning:
  self.append_space()
/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py:539:
DeprecationWarning:
  self.append_widget(self.message, None, None)
[<matplotlib.lines.Line2D instance at 0x406e674c>]