Hi Paul,
Thank you for your prompt reply.
Where should I add the lines
if not hasattr(self,'IsShownOnScreen'):
self.IsShownOnScreen = self.IsVisible
I assume the corresponding file is in the directory
matplotlib/lib/matplotlib/backends
Is that correct ?
I will try it asap.
Thanks in advance
Nils
···
On Tue, 29 Jul 2008 12:10:09 -0400 Paul Kienzle <pkienzle@...537...> wrote:
On Tue, Jul 29, 2008 at 05:46:59PM +0200, Nils Wagner >wrote:
On Mon, 28 Jul 2008 15:32:38 -0400
>> WxPython experts: what version do we require? If it is >>earlier than >> 2.8, then it appears we badly need a testing procedure >>to ensure >> compatibility. (A testing procedure for python version >>compatibility >> would be nice, also--has anyone looked into what it >>would take to set up >> and run a buildbot?)
Rather than cycling through the mailing list for each
individual problem, can you please put together a patch
that works on wx-2.6?
Preferably program to the 2.8 interface so that we don't
build up too much cruft. For example, IsVisible->IsShownOnScreen
can be handled in __init__ with (untested!):
if not hasattr(self,'IsShownOnScreen'):
self.IsShownOnScreen = self.IsVisible
I would like to test the changes on 2.8, but I'm gone
July 31 to after Scipy.
- Paul
OK, I just added a compatibility method for isShownOnScreen. Can you
give svn another test drive with your wx version, Nils?
Thanks,
JDH
···
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
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'
Nils
···
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