The old "classic" toolbar is out of sync with some API updates.
This is what I get when running embedding_in_gtk2.py (after tweaking to use 
the classic toolbar)


Traceback (most recent call last):
  File "embedding_in_gtk2.py", line 39, in <module>
    toolbar = NavigationToolbar(canvas, win)
  File "c:\python25\lib\site-packages\matplotlib\backends\backend_gtk.py", 
line
746, in __init__
    default_type=self.canvas.get_default_filetype())
TypeError: __init__() got an unexpected keyword argument 'default_type'


and the diffs, after what seemed like the appropriate fixing:

for 0.91.2

0 % diff be_gtk_912.py be_gtk_912-fixd.py
738,739c738,739
<                 formats=self.canvas.get_supported_filetypes(),
<                 default_type=self.canvas.get_default_filetype())
---
>                 filetypes=self.canvas.get_supported_filetypes(),
>                 default_filetype=self.canvas.get_default_filetype())

for 0.98.0

0 % diff be_gtk_980.py be_gtk_980-fixd.py
745,746c745,746
<                 formats=self.canvas.get_supported_filetypes(),
<                 default_type=self.canvas.get_default_filetype())
---
>                 filetypes=self.canvas.get_supported_filetypes(),
>                 default_filetype=self.canvas.get_default_filetype())


Cheers
Chris Fuller
University of Minnesota

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to