示例#1
0
def main():
    try:
        Database.initialize()
    except Exception as e:
        print(e)
        return

    app = QApplication(sys.argv)
    app.setWindowIcon(QtGui.QIcon('logo.png'))

    c = MainController()
    w = MainWindow()
    adapter = Adapter(c, w)

    w.show()

    sys.exit(app.exec_())
示例#2
0
def initialize_database():
    Database.initialize()