On Tue, Jul 29, 2008 at 08:39:10PM +0200, Nils Wagner wrote:
> On Tue, 29 Jul 2008 13:01:04 -0500
>   "John Hunter" <[EMAIL PROTECTED]> wrote:
> > On Tue, Jul 29, 2008 at 11:19 AM, Nils Wagner
> > <[EMAIL PROTECTED]> wrote:
> > 
> >> Is that correct ?
> >>
> >> I will try it asap.
> >>
> >> Thanks in advance
> > 
> > OK, I just added a compatibility method for 
> >isShownOnScreen.  Can you
> > give svn another test drive with your wx version, Nils?
> > 
> > Thanks,
> > JDH
>   
> Hi John,
> 
> My wxpython version (2.5.3.1) seems to be outdated.
> 
> Anyway, is there any workaround ?
> 
> 
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", 
> line 2237, in spy
>      b = ishold()
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", 
> line 466, in ishold
>      return gca().ishold()
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", 
> line 566, in gca
>      ax =  gcf().gca(**kwargs)
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", 
> line 270, in gcf
>      return figure()
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", 
> line 247, in figure
>      FigureClass=FigureClass,
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", 
> line 125, in new_figure_manager
>      frame = FigureFrameWxAgg(num, fig)
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", 
> line 1346, in __init__
>      self.canvas = self.get_canvas(fig)
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", 
> line 32, in get_canvas
>      return FigureCanvasWxAgg(self, -1, fig)
>    File 
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", 
> line 701, in __init__
>      self.IsShownOnScreen = self.IsVisible
> AttributeError: 'FigureCanvasWxAgg' object has no 
> attribute 'IsVisible'

Okay, how about
    if not hasattr(self,'IsVisible'):
        self.IsVisible = lambda self: True
in __init__

That way it will always think it is visible.

        - Paul

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to