Clean up some more import statements
This commit is contained in:
@@ -1127,8 +1127,9 @@ class PFTabsContainer(wx.Panel):
|
||||
color = wx.Colour(0, 0, 0)
|
||||
brush = wx.Brush(color)
|
||||
|
||||
# noinspection PyPackageRequirements
|
||||
# noinspection PyPackageRequirements,PyUnresolvedReferences,PyUnresolvedReferences,PyUnresolvedReferences
|
||||
from Carbon.Appearance import kThemeBrushDialogBackgroundActive
|
||||
# noinspection PyUnresolvedReferences
|
||||
brush.MacSetTheme(kThemeBrushDialogBackgroundActive)
|
||||
else:
|
||||
color = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)
|
||||
|
||||
@@ -59,7 +59,7 @@ class GraphFrame(wx.Frame):
|
||||
from matplotlib.figure import Figure
|
||||
enabled = True
|
||||
except ImportError:
|
||||
mpl = Canvas = Figure = None
|
||||
matplotlib = mpl = FigureCanvasWxAgg = Canvas = Figure = None
|
||||
enabled = False
|
||||
|
||||
self.legendFix = False
|
||||
|
||||
3
pyfa.py
3
pyfa.py
@@ -59,6 +59,7 @@ if not hasattr(sys, 'frozen'):
|
||||
try:
|
||||
import wxversion
|
||||
except ImportError:
|
||||
wxversion = None
|
||||
print("Cannot find wxPython\nYou can download wxPython (2.8+) from http://www.wxpython.org/")
|
||||
sys.exit(1)
|
||||
|
||||
@@ -89,6 +90,7 @@ if not hasattr(sys, 'frozen'):
|
||||
print("Unknown sqlalchemy version string format, skipping check")
|
||||
|
||||
except ImportError:
|
||||
sqlalchemy = None
|
||||
print("Cannot find sqlalchemy.\nYou can download sqlalchemy (0.6+) from http://www.sqlalchemy.org/")
|
||||
sys.exit(1)
|
||||
|
||||
@@ -97,6 +99,7 @@ if not hasattr(sys, 'frozen'):
|
||||
# noinspection PyPackageRequirements
|
||||
import dateutil.parser # noqa - Copied import statement from service/update.py
|
||||
except ImportError:
|
||||
dateutil = None
|
||||
print("Cannot find python-dateutil.\nYou can download python-dateutil from https://pypi.python.org/pypi/python-dateutil")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user