aboutsummaryrefslogtreecommitdiffstats
path: root/examples/installer_test/hello.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/installer_test/hello.py')
-rw-r--r--examples/installer_test/hello.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/installer_test/hello.py b/examples/installer_test/hello.py
index 318512458..fc44277bf 100644
--- a/examples/installer_test/hello.py
+++ b/examples/installer_test/hello.py
@@ -89,6 +89,7 @@ class MyWidget(QWidget):
def magic(self):
self.text.setText(random.choice(self.hello))
+
if __name__ == "__main__":
print("Start of hello.py ", time.ctime())
print(" sys.version = {}".format(sys.version.splitlines()[0]))
@@ -100,7 +101,7 @@ if __name__ == "__main__":
widget.resize(800, 600)
widget.show()
if auto_quit:
- milliseconds = 2 * 1000 # run 2 second
+ milliseconds = 2 * 1000 # run 2 second
QTimer.singleShot(milliseconds, app.quit)
retcode = app.exec_()
print("End of hello.py ", time.ctime())