import sys
from PyQt5.QtWidgets import QApplication

from gui import MgallManager


def main():
    app = QApplication(sys.argv)
    ex = MgallManager()
    app.aboutToQuit.connect(ex.ExitHandler)
    sys.exit(app.exec_())


if __name__ == "__main__":
    main()

[((8, 10, 8, 32), 'PyQt5.QtWidgets.QApplication', 'QApplication', ({(8, 23, 8, 31): 'sys.argv'}, {}), '(sys.argv)', False, 'from PyQt5.QtWidgets import QApplication\n'), ((9, 9, 9, 23), 'gui.MgallManager', 'MgallManager', ({}, {}), '()', False, 'from gui import MgallManager\n')]