Move "graphs enabled" variable to top of graphs module

This commit is contained in:
DarkPhoenix
2019-08-15 11:49:26 +03:00
parent 3ab06d0832
commit c7e769e42e
4 changed files with 25 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ import gui.fitCommands as cmd
import gui.globalEvents as GE
from eos.config import gamedata_date, gamedata_version
from eos.modifiedAttributeDict import ModifiedAttributeDict
from graphs.gui import GraphFrame
from graphs import GraphFrame
from gui.additionsPane import AdditionsPane
from gui.bitmap_loader import BitmapLoader
from gui.builtinMarketBrowser.events import ItemSelected

View File

@@ -21,9 +21,9 @@
import wx
import config
import graphs
from service.character import Character
from service.fit import Fit
from graphs.gui import canvasPanel as graphCanvasPanel
import gui.globalEvents as GE
from gui.bitmap_loader import BitmapLoader
@@ -101,7 +101,7 @@ class MainMenuBar(wx.MenuBar):
graphFrameItem = wx.MenuItem(fitMenu, self.graphFrameId, "&Graphs\tCTRL+G")
graphFrameItem.SetBitmap(BitmapLoader.getBitmap("graphs_small", "gui"))
fitMenu.Append(graphFrameItem)
if not graphCanvasPanel.graphFrame_enabled:
if not graphs.graphFrame_enabled:
self.Enable(self.graphFrameId, False)
self.ignoreRestrictionItem = fitMenu.Append(self.toggleIgnoreRestrictionID, "Disable Fitting Re&strictions")