diff options
-rw-r--r-- | sources/pyside2/doc/gettingstarted.rst | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/sources/pyside2/doc/gettingstarted.rst b/sources/pyside2/doc/gettingstarted.rst index cc915a5cb..0ee6a9173 100644 --- a/sources/pyside2/doc/gettingstarted.rst +++ b/sources/pyside2/doc/gettingstarted.rst @@ -30,11 +30,25 @@ Testing the Installation ======================== Now that you have |project| installed, you can test your setup by running the following Python -constructs to print version information: +constructs to print version information:: -.. include:: pysideversion.rst - :start-line: 5 - :end-line: 32 + import PySide2.QtCore + + # Prints PySide2 version + # e.g. 5.11.1a1 + print(PySide2.__version__) + + # Gets a tuple with each version component + # e.g. (5, 11, 1, 'a', 1) + print(PySide2.__version_info__) + + # Prints the Qt version used to compile PySide2 + # e.g. "5.11.2" + print(PySide2.QtCore.__version__) + + # Gets a tuple with each version components of Qt used to compile PySide2 + # e.g. (5, 11, 2) + print(PySide2.QtCore.__version_info__) Creating a Simple Application ============================= |