def __init__(self): super(MainWindow, self).__init__() self.guiMutex = QtCore.QMutex() self.setWindowTitle("mEDI's Elite Tools") self.setDockOptions(QtGui.QMainWindow.AnimatedDocks | QtGui.QMainWindow.AllowNestedDocks | QtGui.QMainWindow.AllowTabbedDocks) self.setStatusBar("Welcome to mEDI's Elite Tools (Version: %s, %s)" % (__version__, __builddate__)) self.setMinimumSize(600, 400) self.setWindowIcon(QtGui.QIcon(QtGui.QPixmap("img/logo.png"))) self.addProgressBarStatusBar() self.clipboard = QtGui.QClipboard() self.mydb = elite.db(guiMode=True) self.mydb.cleanIgnorePriceTemp() self.mydb.startStreamUpdater() self.dbworker = gui.dbworker.new(self) self.location = elite.location(self.mydb) self.createActions() self.createMenus() self.createTimer() self.myPlugins = [ gui.multihoproute, gui.deals_from_to, gui.commodities_finder, gui.shipyard_finder, gui.power_control_finder, gui.flylog, gui.bookmarks, gui.rares_finder, gui.profit_calculator, gui.outfitting_finder, gui.data_status ] self.addTool(gui.multihoproute, self.multiHopRouteWidget) self.addTool(gui.deals_from_to, self.dealsFromToWidget) self.addTool(gui.commodities_finder, self.commoditiesFinderWidget) self.addTool(gui.shipyard_finder, self.shipyardFinderWidget) self.addTool(gui.power_control_finder, self.powerControlFinderWidget) self.addTool(gui.flylog, self.flyLogWidget) self.addTool(gui.bookmarks, self.BookmarksWidget) self.addTool(gui.rares_finder, self.raresFinderWidget) self.addTool(gui.profit_calculator, self.profitCalculatorWidget) self.addTool(gui.outfitting_finder, self.outfittingFinderWidget) self.addTool(gui.data_status, self.dataStatusWidget) gui.statistics.initRun(self) gui.edit_permit.initRun(self) gui.add_edit_items.initRun(self) self.show() self.loadLastWindowsOptions()
def __init__(self): super(MainWindow, self).__init__() self.guiMutex = QtCore.QMutex() self.setWindowTitle("mEDI's Elite Tools") self.setDockOptions(QtGui.QMainWindow.AnimatedDocks | QtGui.QMainWindow.AllowNestedDocks | QtGui.QMainWindow.AllowTabbedDocks) self.setStatusBar("Welcome to mEDI's Elite Tools (Version: %s, %s)" % (__version__, __builddate__)) self.setMinimumSize(600, 400) self.setWindowIcon(QtGui.QIcon(QtGui.QPixmap("img/logo.png"))) self.addProgressBarStatusBar() self.clipboard = QtGui.QClipboard() self.mydb = elite.db(guiMode=True) self.mydb.cleanIgnorePriceTemp() self.mydb.startStreamUpdater() self.dbworker = gui.dbworker.new(self) self.location = elite.location(self.mydb) self.createActions() self.createMenus() self.createTimer() self.myPlugins = [gui.multihoproute, gui.deals_from_to, gui.commodities_finder, gui.shipyard_finder, gui.power_control_finder, gui.flylog, gui.bookmarks, gui.rares_finder, gui.profit_calculator, gui.outfitting_finder, gui.data_status] self.addTool( gui.multihoproute, self.multiHopRouteWidget) self.addTool( gui.deals_from_to, self.dealsFromToWidget) self.addTool( gui.commodities_finder, self.commoditiesFinderWidget) self.addTool( gui.shipyard_finder, self.shipyardFinderWidget) self.addTool( gui.power_control_finder, self.powerControlFinderWidget) self.addTool( gui.flylog, self.flyLogWidget) self.addTool( gui.bookmarks, self.BookmarksWidget) self.addTool( gui.rares_finder, self.raresFinderWidget) self.addTool( gui.profit_calculator, self.profitCalculatorWidget) self.addTool( gui.outfitting_finder, self.outfittingFinderWidget) self.addTool( gui.data_status, self.dataStatusWidget) gui.statistics.initRun(self) gui.edit_permit.initRun(self) gui.add_edit_items.initRun(self) self.show() self.loadLastWindowsOptions()
# -*- coding: UTF8 import timeit import sys import elite start = timeit.default_timer() mydb = elite.db() location = elite.location(mydb) route = elite.dealsroute(mydb) route.setOption("startSystem", location.getLocation()) route.setOption("tradingHops", 2) route.setOption("maxJumpDistance", 16.3) route.setOption("minStock", 10000) route.setOption("maxDist", route.getOption("maxJumpDistance") * 3) route.setOption("maxSearchRange", route.getOption("maxJumpDistance") * 6) route.calcDefaultOptions() route.limitCalc(0) #options (normal, fast, nice, slow, all) route.calcRoute() route.printList() print(round(timeit.default_timer() - start, 3)) print(sys.version)
# -*- coding: UTF8 import timeit import sys import elite start = timeit.default_timer() mydb = elite.db() location = elite.location(mydb) route = elite.dealsroute(mydb) route.setOption( "startSystem", location.getLocation() ) route.setOption( "tradingHops", 2 ) route.setOption( "maxJumpDistance", 16.3 ) route.setOption( "minStock", 10000 ) route.setOption( "maxDist", route.getOption("maxJumpDistance") * 3 ) route.setOption( "maxSearchRange", route.getOption("maxJumpDistance") * 6 ) route.calcDefaultOptions() route.limitCalc(0) #options (normal, fast, nice, slow, all) route.calcRoute() route.printList() print(round(timeit.default_timer() - start, 3)) print(sys.version)