From 1615b645bc9d2e563efdc1d9ea054e07a4072515 Mon Sep 17 00:00:00 2001 From: Daniel Pizetta Date: Tue, 23 Mar 2021 23:59:08 -0300 Subject: [PATCH] Add OS info into example title/logging --- example/example.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/example/example.py b/example/example.py index 80b7758..899d9b8 100644 --- a/example/example.py +++ b/example/example.py @@ -147,12 +147,19 @@ def main(): ui = ui_main() ui.setupUi(window) - title = ("QDarkStyle Example - " - + "(QDarkStyle=v" + qdarkstyle.__version__ - + ", QtPy=v" + QTPY_VERSION - + ", " + API_NAME + "=v" + API_VERSION - + ", Qt=v" + QT_VERSION - + ", Python=v" + platform.python_version() + ")") + title = ("QDarkStyle Example - (" + + f"QDarkStyle=v{qdarkstyle.__version__}, " + + f"QtPy=v{QTPY_VERSION}, " + + f"{API_NAME}=v{API_VERSION}, " + + f"Qt=v{QT_VERSION}, " + + f"Python=v{platform.python_version()}, " + # Operating system info are maybe too much, + # but different OS add info in different places + + f"System={platform.system()}, " + + f"Release={platform.release()}, " + + f"Version={platform.version()}, " + + f"Platform={platform.platform()}" + + ")") _logger.info(title)