aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/basictutorial/dialog.rst
diff options
context:
space:
mode:
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 8246ddd7a..04f6ffa5d 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(f"Hello {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(f"Hello {self.edit.text()}")
if __name__ == '__main__':
# Create the Qt Application