1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/usr/bin/env python3 import sys import PyQt5.QtWidgets as Qw from Window1 import MainWindow1 def main(args): qtApp = Qw.QApplication(args) mainWin1 = MainWindow1() mainWin1.show() return qtApp.exec_() if __name__ == '__main__': sys.exit(main(sys.argv) or 0)