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

@@ -78,7 +78,7 @@ class MainMenuBar(wx.MenuBar):
graphFrameItem = wx.MenuItem(windowMenu, self.graphFrameId, "Graphs\tCTRL+G")
graphFrameItem.SetBitmap(bitmapLoader.getBitmap("graphs_small", "icons"))
graphFrameItem.Enable(gui.graphFrame.enabled)
# graphFrameItem.Enable(gui.graphFrame.enabled)
windowMenu.AppendItem(graphFrameItem)
#windowMenu.Append(wx.ID_PREFERENCES)