diff options
Diffstat (limited to 'sources/pyside6/doc/tutorials/portingguide/index.rst')
-rw-r--r-- | sources/pyside6/doc/tutorials/portingguide/index.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/pyside6/doc/tutorials/portingguide/index.rst b/sources/pyside6/doc/tutorials/portingguide/index.rst index 12f76d3fc..0b89c2ff8 100644 --- a/sources/pyside6/doc/tutorials/portingguide/index.rst +++ b/sources/pyside6/doc/tutorials/portingguide/index.rst @@ -8,7 +8,7 @@ to Python to understand this. Before you start, ensure that all the prerequisites for Qt for Python are met. See -:doc:`Getting Started <../../gettingstarted>` for more +:doc:`Getting Started <../../gettingstarted/index>` for more information. In addition, familiarize yourself with the basic differences between Qt in C++ and in Python. @@ -63,7 +63,7 @@ C++ vs Python doStuff(key, value) In this example, ``func()`` would treat ``var`` as a local -name without the ``global`` statement. This would lead to +name without the ``global`` statement. This would lead to a ``NameError`` in the ``value is None`` handling, on accessing ``var``. For more information about this, see `Python refernce documentation <python refdoc>`_. @@ -93,7 +93,7 @@ follow the guidelines outlined in the app = QApplication(sys.argv) label = QLabel("Hello World") label.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) .. note:: Qt provides classes that are meant to manage the application-specific requirements depending on @@ -153,7 +153,7 @@ demonstrating some of these differences: .. literalinclude:: hello_world_ex.py :linenos: - :lines: 40- + :lines: 3- .. note:: The ``if`` block is just a good practice when developing a Python application. It lets the Python file |