aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/basictutorial/dialog.rst
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2020-12-30 02:58:00 +0100
committerCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-01-04 16:48:46 +0100
commitb3a8c9898cca52b63d270a54651ec71de9b32238 (patch)
tree341ede12932426b0b1af994a3d2ae8aa7def02e3 /sources/pyside6/doc/tutorials/basictutorial/dialog.rst
parent6cc55fefc8ddf12ecc9dcce33e367148e6216b1f (diff)
doc/tests: update old style print
There were some leftovers from Python 2 still around our code, this patch only covers the 'print' cases. Pick-to: 6.0 Change-Id: Icf574be6a40cdb233d3c410c2ec831d2d09bb735 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/basictutorial/dialog.rst')
-rw-r--r--sources/pyside6/doc/tutorials/basictutorial/dialog.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/doc/tutorials/basictutorial/dialog.rst b/sources/pyside6/doc/tutorials/basictutorial/dialog.rst
index 0ced571db..8246ddd7a 100644
--- a/sources/pyside6/doc/tutorials/basictutorial/dialog.rst
+++ b/sources/pyside6/doc/tutorials/basictutorial/dialog.rst
@@ -88,7 +88,7 @@ the Form, so you have to add it after the `init()` function:
# Greets the user
def greetings(self):
- print ("Hello {}".format(self.edit.text()))
+ print("Hello {}".format(self.edit.text()))
Our function just prints the contents of the `QLineEdit` to the
python console. We have access to the text by means of the
@@ -133,7 +133,7 @@ Here is the complete code for this tutorial:
# Greets the user
def greetings(self):
- print ("Hello %s" % self.edit.text())
+ print("Hello %s" % self.edit.text())
if __name__ == '__main__':
# Create the Qt Application