def startapp(): if platform.system() == 'Windows': #from .__init__ import set_locale set_locale() else: pass #Gtk.threads_init() install_gettext("sanaviron") if '--debug' in sys.argv: import gc gc.enable() gc.set_debug(gc.DEBUG_LEAK) print(get_summary()) sys.path.append(os.path.dirname(os.path.abspath(__file__))) from ui.application import Application application = Application() if '--sample' in sys.argv: application.editor.canvas.load_from_xml(os.path.join("..", "examples", "invoice.xml")) application.run()
from tester.tester import Tester from ui.application import Application from controller.controller import Controller from repository.repository import Repository with open("database.txt", "r") as f: t = Tester() repo = Repository() controller = Controller(repo, f) app = Application(controller, repo) app.run()