diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-05-12 14:27:15 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-05-12 20:33:36 +0200 |
commit | c5db9d63277201ee58829f7eb0656c534d04c249 (patch) | |
tree | ef67e9547943c49497bffc52d041bb2aa93243a7 /examples/installer_test | |
parent | 7118ab7a34b1c3c6a9b0b1d29e0a9d2011a2d887 (diff) |
examples: use f-strings
Change-Id: I0360f1476af666494c730e4f3c8f4f3c562abc09
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/installer_test')
-rw-r--r-- | examples/installer_test/hello.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/installer_test/hello.py b/examples/installer_test/hello.py index b8e5df914..94d82d4ab 100644 --- a/examples/installer_test/hello.py +++ b/examples/installer_test/hello.py @@ -74,7 +74,7 @@ class MyWidget(QWidget): "Hola Mundo", "Привет мир"] self.button = QPushButton("Click me!") - self.text = QLabel("Hello World auto_quit={}".format(auto_quit)) + self.text = QLabel(f"Hello World auto_quit={auto_quit}") self.text.setAlignment(Qt.AlignCenter) self.layout = QVBoxLayout() @@ -91,9 +91,9 @@ class MyWidget(QWidget): if __name__ == "__main__": - print("Start of hello.py ", time.ctime()) - print(" sys.version = {}".format(sys.version.splitlines()[0])) - print(" platform.platform() = {}".format(platform.platform())) + print("Start of hello.py ", time.ctime()) + print(" sys.version = ", sys.version.splitlines()[0]) + print(" platform.platform() = ", platform.platform()) app = QApplication() |