aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/doc/tutorials/basictutorial/widgets.rst')
-rw-r--r--sources/pyside6/doc/tutorials/basictutorial/widgets.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/doc/tutorials/basictutorial/widgets.rst b/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
index d86ba2623..89bd23f63 100644
--- a/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
+++ b/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
@@ -14,7 +14,7 @@ Here is a simple example of a Hello World application in PySide6:
app = QApplication(sys.argv)
label = QLabel("Hello World!")
label.show()
- app.exec_()
+ app.exec()
For a widget application using PySide6, you must always start by
@@ -40,6 +40,6 @@ After the creation of the application object, we have created a
.. note:: After creating the label, we call `show()` on it.
-Finally, we call `app.exec_()` to enter the Qt main loop and start
+Finally, we call `app.exec()` to enter the Qt main loop and start
to execute the Qt code. In reality, it is only here where the label
is shown, but this can be ignored for now.