Greetings.  According to http://www.wxpython.org/recentchanges.php,
SetInitialSize became available at version 2.7.2.0 (7 Nov 2006) of wxPython.
It renamed the prior SetBestFittingSize, for which I found no other mention
in the changes document.  (That version history lists those methods as
belonging to wx.Window, from which wx.Panel inherits.)

Stan


-----Original Message-----
From: John Hunter [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 09, 2008 16:05
To: Nils Wagner
Cc: matplotlib-devel@lists.sourceforge.net; Stan West
Subject: Re: [matplotlib-devel] AttributeError: 'FigureCanvasWxAgg' object
has no attribute 'SetInitialSize'

On Sat, Jun 7, 2008 at 4:36 AM, Nils Wagner <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I have some trouble with matplotlib's svn version.
> Any pointer would be appreciated.
>     self.canvas.SetInitialSize(wx.Size(fig.bbox.width,
> fig.bbox.height))
> AttributeError: 'FigureCanvasWxAgg' object has no attribute 
> 'SetInitialSize'

This came from Stan's patch to fix figure sizing in wx.  Nils, could you
report your wx version, and Stan, could you see if there is a version
problem in the SetInitialSize call?

Thanks,
JDH



-------------------------------------------------------------------------
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