correct main default arg
This commit is contained in:
@ -1926,7 +1926,7 @@ class Window(QtWidgets.QMainWindow):
|
|||||||
qsettings.setValue("WindowState", int(self.windowState()))
|
qsettings.setValue("WindowState", int(self.windowState()))
|
||||||
|
|
||||||
|
|
||||||
def main(args={}):
|
def main(args=[]):
|
||||||
app = QtWidgets.QApplication.instance() or QtWidgets.QApplication(args)
|
app = QtWidgets.QApplication.instance() or QtWidgets.QApplication(args)
|
||||||
win = Window()
|
win = Window()
|
||||||
return app.exec_()
|
return app.exec_()
|
||||||
|
Reference in New Issue
Block a user