def extensive(): pr = cProfile.Profile() pr.enable() ark.init() pr.disable() s = StringIO() sortby = 'cumulative' ps = pstats.Stats(pr, stream=s).sort_stats(sortby) ps.print_stats() print(s.getvalue())
def init(): root = Tk() root.title(PyArcGui.gui_title) root.geometry(PyArcGui.gui_size) app = PyArcGui(root) Factory.set('GUI',app) from ark.gui.control import Control Factory.set('GUI_CONTROL',Control) ark.init() print('RUNNING GUI') root.mainloop()
from configs.config_base import ConfigBase ConfigBase.load_config() from translation import Translation from factory import Factory trans = Translation() Factory.set('Translation',trans) import ark ark.init()
from configs.config_base import ConfigBase ConfigBase.load_config() from translation import Translation from factory import Factory trans = Translation() Factory.set('Translation', trans) import ark ark.init()