Revision: 5935 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5935&view=rev Author: mdboom Date: 2008-07-31 14:10:18 +0000 (Thu, 31 Jul 2008)
Log Message: ----------- Warn when using Wx backend with wxPython < 2.8 Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_wx.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_wx.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_wx.py 2008-07-31 13:50:58 UTC (rev 5934) +++ trunk/matplotlib/lib/matplotlib/backends/backend_wx.py 2008-07-31 14:10:18 UTC (rev 5935) @@ -249,6 +249,8 @@ Initialise a wxWindows renderer instance. """ DEBUG_MSG("__init__()", 1, self) + if wx.VERSION_STRING < "2.8": + raise RuntimeError("matplotlib no longer supports wxPython < 2.8 for the Wx backend.\nYou may, however, use the WxAgg backend.") self.width = bitmap.GetWidth() self.height = bitmap.GetHeight() self.bitmap = bitmap This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- 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-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins