Load matplotlib only when needed, this speeds up a little pyfa startup

This commit is contained in:
HomeWorld
2010-12-05 17:47:49 +02:00
parent cba719f324
commit 7d0f5cf910
3 changed files with 27 additions and 11 deletions

View File

@@ -394,6 +394,9 @@ class MainFrame(wx.Frame):
self.waitDialog.Destroy()
def openGraphFrame(self, event):
if not gui.graphFrame.enabled:
return
if not self.graphFrame:
self.graphFrame = GraphFrame(self)
self.graphFrame.Show()