[wxPython-dev] wxversion issue

SPE Stani's Python Editor spe.stani.be at gmail.com
Tue Oct 23 14:01:34 PDT 2007


Thanks, this will allow some cleaner code in the future.

Stani

On 10/23/07, Robin Dunn <robin at alldunn.com> wrote:
> Stani's Python Editor wrote:
> > A SPE user reported a problem with wxversion when SPE is run inside
> > Blender. SPE can launch fine one time in Blender. Because the wxpython
> > loop blocks blender internal loop. Users have to exit SPE to continue
> > working with Blender. Afterwards they are not able to start SPE again
> > because wxversion raises an VersionException "wxversion.ensureMinimal()
> > must be called before wxPython is imported". I would prefer that it
> > would raise a different exception like AlreadyImportedException to
> > distinguish with the other version exceptions. Or even more handy would
> > be if the wxpython version check would have an optional argument to
> > ignore if it is already loaded and just check if the loaded version is
> > within the version range.
>
> I added an AlreadyImportedError that derives from VersionError, so
> anybody that was catching VersionError before will still get it.
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org  Java give you jitters?  Relax with wxPython!
>
>


-- 
http://pythonide.stani.be




More information about the wxpython-dev mailing list