Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/matplotlib/backends/backend_wx.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@
_DEBUG_lvls = {1 : 'Low ', 2 : 'Med ', 3 : 'High', 4 : 'Error' }

missingwx = "Matplotlib backend_wx and backend_wxagg require wxPython >=2.8"
missingwxversion = ("Matplotlib backend_wx and backend_wxagg "
"require wxversion, which was not found.")

if not hasattr(sys, 'frozen'): # i.e., not py2exe
try:
import wxversion
except ImportError:
raise ImportError(missingwx)
raise ImportError(missingwxversion)

# Some early versions of wxversion lack AlreadyImportedError.
# It was added around 2.8.4?
Expand Down