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