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.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/sources/pyside6/doc/tutorials/basictutorial/widgets.rst b/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
index d86ba2623..ef14c7e99 100644
--- a/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
+++ b/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
@@ -14,7 +14,13 @@ 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()
+
+
+When you execute it the code, the application will look like:
+
+.. image:: widgets.png
+ :alt: Simple Widget
For a widget application using PySide6, you must always start by
@@ -40,6 +46,7 @@ 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.
+