[wxPython-dev] wxversion issue

Robin Dunn robin at alldunn.com
Tue Oct 23 11:49:30 PDT 2007


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!





More information about the wxpython-dev mailing list