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

@@ -64,11 +64,16 @@ from time import gmtime, strftime
if not 'wxMac' in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION >= (3,0)):
from service.crest import CrestModes
from gui.crestFittings import CrestFittings, ExportToEve, CrestMgmt
from gui.propertyEditor import AttributeEditor
from wx.lib.pubsub import setupkwargs
from wx.lib.pubsub import pub
try:
from gui.propertyEditor import AttributeEditor
disableOverrideEditor = False
except ImportError, e:
print "Error loading Attribute Editor: %s.\nAccess to Attribute Editor is disabled."%e.message
disableOverrideEditor = True
#dummy panel(no paint no erasebk)
class PFPanel(wx.Panel):
def __init__(self,parent):