123456789101112131415161718192021222324 |
- #!/usr/bin/env python
- import sys
- from PyQt5 import QtWidgets
- from pycs.ui import MainWindow
- def main(args):
- app = QtWidgets.QApplication(args)
- window = MainWindow()
- window.show()
- if len(args) > 1:
- window.project_open(args[1])
- retval = app.exec_()
- return retval
- if __name__ == '__main__':
- retval = main(sys.argv)
- sys.exit(retval)
|