SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Fixing matplotlib for wxPython 2.8

From: Eric F. <ef...@ha...> - 2009年07月10日 21:33:38
Gael Varoquaux wrote:
> On Fri, Jul 10, 2009 at 11:05:24PM +0200, Gael Varoquaux wrote:
>>> Committed to svn. Please check it.
> 
>> Certainly does work betters. 
> 
> Actually, I beg your pardon, but it does not really work: if you have
> 2.6 and 2.8 installed, it will still import 2.6, which is not what you
> want.
> 
> Here is a patch that works a bit better: it does import 2.8 even when 2.6
> is installed:
Committed, thank you.
Eric
> 
> Index: lib/matplotlib/backends/backend_wx.py
> ===================================================================
> --- lib/matplotlib/backends/backend_wx.py (revision 7251)
> +++ lib/matplotlib/backends/backend_wx.py (working copy)
> @@ -124,6 +124,12 @@
> else:
> warnings.warn(
> "Update your wxversion.py to one including
> AlreadyImportedError")
> + try:
> + wxversion.ensureMinimal('2.8')
> + except wxversion.VersionError:
> + pass
> + 
> + 
> 
> try:
> import wx
> 
> Thanks for your work,
> 
> Gaël

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /