Sandro Tosi wrote: > On Fri, Mar 6, 2009 at 22:24, Sandro Tosi <mo...@debian.org> wrote: >> On Fri, Mar 6, 2009 at 22:12, Sandro Tosi <mo...@debian.org> wrote: >>>>>> import wxversion >>>>>> wxversion.select('2.8') >>>>>> from wx import * >>>>>> wx.__version__ >>> '2.8.7.1' >>> >>> That solves the problem of multi-wx on a system. >>> >>> What do you think about adding those 2 line into wx examples? >> Moreover, I will provide a patch to move from > > Here it is the promised patch (sorry for the late, that proves how > busy I am these days). > > It uses the 'wxversion.ensureMinimal' function as Chris pointed out, > and move from "from wx import *" to "import wx". > > I tested them on a sys (Debian sid) with both wx2.6 and wx2.8: before > the patch the examples goes in abort, after they select wx2.8 and uses > it displaying the windows (even though ex2 and 3 seems a little "too > compress" do not know if it's due to code or patch ;) ).
Sandro, I have applied your patch, plus related changes to backend_wx and backend_wxagg as suggested by Chris, to the 0.98.5 maintenance branch, and then used svnmerge to propagate the changes to the trunk. (In other words, I judged the changes to be a bug fix rather than a new feature.) Eric ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel