AttributeError: 'module' object has no attribute 'CallLater'

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

···

On Tue, Jul 29, 2008 at 08:39:10PM +0200, Nils Wagner wrote:

On Tue, 29 Jul 2008 13:01:04 -0500 > "John Hunter" <jdh2358@...149...> wrote:
> On Tue, Jul 29, 2008 at 11:19 AM, Nils Wagner > > <nwagner@...425...> 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'

OK, Nils, I committed a minor variant of that in r5926. Test again...

JDH

···

On Tue, Jul 29, 2008 at 4:38 PM, Paul Kienzle <pkienzle@...537...> wrote:

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

That way it will always think it is visible.

Hi John,

Sorry for the delay and thank you for your patience.
Here is the output of the "never-ending story"

Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", line 1099, in _onPaint
     self.draw(drawDC=drawDC)
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", line 64, in draw
     self.gui_repaint(drawDC=drawDC)
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", line 1000, in gui_repaint
     if self.IsShownOnScreen():
TypeError: <lambda>() takes exactly 1 argument (0 given)
Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", line 1101, in _onPaint
     self.gui_repaint(drawDC=drawDC)
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", line 1000, in gui_repaint
     if self.IsShownOnScreen():
TypeError: <lambda>() takes exactly 1 argument (0 given)
  BTW, the entries are identical for both revisions.
Is that intended ?

r5923 | jdh2358 | 2008-07-29 20:01:16 +0200 (Di, 29 Jul 2008) | 1 line

special case contains test for degenerate rectangle

···

On Tue, 29 Jul 2008 16:43:42 -0500 "John Hunter" <jdh2358@...149...> wrote:

On Tue, Jul 29, 2008 at 4:38 PM, Paul Kienzle ><pkienzle@...537...> wrote:

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

That way it will always think it is visible.

OK, Nils, I committed a minor variant of that in r5926. Test again...

JDH

------------------------------------------------------------------------
r5922 | jdh2358 | 2008-07-29 19:47:50 +0200 (Di, 29 Jul 2008) | 1 line

special case contains test for degenerate rectangle

Could you try again with r5932

···

On Wed, Jul 30, 2008 at 10:58 AM, Nils Wagner <nwagner@...425...> wrote:

Sorry for the delay and thank you for your patience.
Here is the output of the "never-ending story"