Add some conditionals to disable Attribute Editor for wxPython 2.8

This commit is contained in:
blitzmann
2015-11-06 20:23:09 -05:00
parent b302a0a6e5
commit febc2eee09
3 changed files with 21 additions and 9 deletions

View File

@@ -1,5 +1,12 @@
import wx
import wx.propgrid as wxpg
try:
import wx.propgrid as wxpg
except:
if wx.VERSION < (2, 9):
raise ImportError("wx.propgrid is only available in wxPython >= 2.9")
else:
raise
import gui.PFSearchBox as SBox
from gui.marketBrowser import SearchBox