aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-04-30 17:49:36 +0200
committerCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-05-05 20:44:49 +0200
commit57e681930f6b4c7c311fc70a66317ef64dee4cb1 (patch)
treebb74a1c956c54be258ccb79eb2e13fdb82107301 /examples/widgets/tutorials
parent36431b071095b8999347df87621bf23ffcc2ac3d (diff)
examples: use exec() instead of exec_()
Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/tutorials')
-rw-r--r--examples/widgets/tutorials/addressbook/part1.py2
-rw-r--r--examples/widgets/tutorials/addressbook/part2.py2
-rw-r--r--examples/widgets/tutorials/addressbook/part3.py2
-rw-r--r--examples/widgets/tutorials/addressbook/part4.py2
-rw-r--r--examples/widgets/tutorials/addressbook/part5.py4
-rw-r--r--examples/widgets/tutorials/addressbook/part6.py4
-rw-r--r--examples/widgets/tutorials/addressbook/part7.py4
-rw-r--r--examples/widgets/tutorials/cannon/t1.py2
-rw-r--r--examples/widgets/tutorials/cannon/t10.py2
-rw-r--r--examples/widgets/tutorials/cannon/t11.py2
-rw-r--r--examples/widgets/tutorials/cannon/t12.py2
-rw-r--r--examples/widgets/tutorials/cannon/t13.py2
-rw-r--r--examples/widgets/tutorials/cannon/t14.py2
-rw-r--r--examples/widgets/tutorials/cannon/t2.py2
-rw-r--r--examples/widgets/tutorials/cannon/t3.py2
-rw-r--r--examples/widgets/tutorials/cannon/t4.py2
-rw-r--r--examples/widgets/tutorials/cannon/t5.py2
-rw-r--r--examples/widgets/tutorials/cannon/t6.py2
-rw-r--r--examples/widgets/tutorials/cannon/t7.py2
-rw-r--r--examples/widgets/tutorials/cannon/t8.py2
-rw-r--r--examples/widgets/tutorials/cannon/t9.py2
21 files changed, 24 insertions, 24 deletions
diff --git a/examples/widgets/tutorials/addressbook/part1.py b/examples/widgets/tutorials/addressbook/part1.py
index 1970b31a7..23d438416 100644
--- a/examples/widgets/tutorials/addressbook/part1.py
+++ b/examples/widgets/tutorials/addressbook/part1.py
@@ -74,4 +74,4 @@ if __name__ == '__main__':
address_book = AddressBook()
address_book.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/addressbook/part2.py b/examples/widgets/tutorials/addressbook/part2.py
index fe823742f..a5f91a5e7 100644
--- a/examples/widgets/tutorials/addressbook/part2.py
+++ b/examples/widgets/tutorials/addressbook/part2.py
@@ -181,4 +181,4 @@ if __name__ == '__main__':
address_book = AddressBook()
address_book.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/addressbook/part3.py b/examples/widgets/tutorials/addressbook/part3.py
index c5ff6e732..3053dd468 100644
--- a/examples/widgets/tutorials/addressbook/part3.py
+++ b/examples/widgets/tutorials/addressbook/part3.py
@@ -246,4 +246,4 @@ if __name__ == '__main__':
address_book = AddressBook()
address_book.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/addressbook/part4.py b/examples/widgets/tutorials/addressbook/part4.py
index 013f5610d..87f196436 100644
--- a/examples/widgets/tutorials/addressbook/part4.py
+++ b/examples/widgets/tutorials/addressbook/part4.py
@@ -300,4 +300,4 @@ if __name__ == '__main__':
address_book = AddressBook()
address_book.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/addressbook/part5.py b/examples/widgets/tutorials/addressbook/part5.py
index d43c2fd27..c8081ddab 100644
--- a/examples/widgets/tutorials/addressbook/part5.py
+++ b/examples/widgets/tutorials/addressbook/part5.py
@@ -267,7 +267,7 @@ class AddressBook(QWidget):
def find_contact(self):
self.dialog.show()
- if self.dialog.exec_() == QDialog.Accepted:
+ if self.dialog.exec() == QDialog.Accepted:
contact_name = self.dialog.get_find_text()
if contact_name in self.contacts:
@@ -361,4 +361,4 @@ if __name__ == '__main__':
address_book = AddressBook()
address_book.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/addressbook/part6.py b/examples/widgets/tutorials/addressbook/part6.py
index f96a55e17..1d43805e7 100644
--- a/examples/widgets/tutorials/addressbook/part6.py
+++ b/examples/widgets/tutorials/addressbook/part6.py
@@ -277,7 +277,7 @@ class AddressBook(QWidget):
def find_contact(self):
self.dialog.show()
- if self.dialog.exec_() == QDialog.Accepted:
+ if self.dialog.exec() == QDialog.Accepted:
contact_name = self.dialog.get_find_text()
if contact_name in self.contacts:
@@ -424,4 +424,4 @@ if __name__ == '__main__':
address_book = AddressBook()
address_book.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/addressbook/part7.py b/examples/widgets/tutorials/addressbook/part7.py
index a926d62eb..26688c428 100644
--- a/examples/widgets/tutorials/addressbook/part7.py
+++ b/examples/widgets/tutorials/addressbook/part7.py
@@ -283,7 +283,7 @@ class AddressBook(QWidget):
def find_contact(self):
self.dialog.show()
- if self.dialog.exec_() == QDialog.Accepted:
+ if self.dialog.exec() == QDialog.Accepted:
contact_name = self.dialog.get_find_text()
if contact_name in self.contacts:
@@ -476,4 +476,4 @@ if __name__ == '__main__':
address_book = AddressBook()
address_book.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t1.py b/examples/widgets/tutorials/cannon/t1.py
index f3b4f9112..2da78ccf1 100644
--- a/examples/widgets/tutorials/cannon/t1.py
+++ b/examples/widgets/tutorials/cannon/t1.py
@@ -55,4 +55,4 @@ if __name__ == '__main__':
hello.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t10.py b/examples/widgets/tutorials/cannon/t10.py
index 524f44fc9..ed3d9fce3 100644
--- a/examples/widgets/tutorials/cannon/t10.py
+++ b/examples/widgets/tutorials/cannon/t10.py
@@ -188,4 +188,4 @@ if __name__ == '__main__':
widget = MyWidget()
widget.setGeometry(100, 100, 500, 355)
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t11.py b/examples/widgets/tutorials/cannon/t11.py
index ce4e4470b..f297a14b4 100644
--- a/examples/widgets/tutorials/cannon/t11.py
+++ b/examples/widgets/tutorials/cannon/t11.py
@@ -260,4 +260,4 @@ if __name__ == '__main__':
widget = MyWidget()
widget.setGeometry(100, 100, 500, 355)
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t12.py b/examples/widgets/tutorials/cannon/t12.py
index 6e7d42218..f2c6ea08c 100644
--- a/examples/widgets/tutorials/cannon/t12.py
+++ b/examples/widgets/tutorials/cannon/t12.py
@@ -311,4 +311,4 @@ if __name__ == '__main__':
widget = MyWidget()
widget.setGeometry(100, 100, 500, 355)
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t13.py b/examples/widgets/tutorials/cannon/t13.py
index 9214611bd..aa00825aa 100644
--- a/examples/widgets/tutorials/cannon/t13.py
+++ b/examples/widgets/tutorials/cannon/t13.py
@@ -392,4 +392,4 @@ if __name__ == '__main__':
board = GameBoard()
board.setGeometry(100, 100, 500, 355)
board.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t14.py b/examples/widgets/tutorials/cannon/t14.py
index 3fd298e4d..0e8318ebe 100644
--- a/examples/widgets/tutorials/cannon/t14.py
+++ b/examples/widgets/tutorials/cannon/t14.py
@@ -445,4 +445,4 @@ if __name__ == '__main__':
board = GameBoard()
board.setGeometry(100, 100, 500, 355)
board.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t2.py b/examples/widgets/tutorials/cannon/t2.py
index a912db39b..1205a1328 100644
--- a/examples/widgets/tutorials/cannon/t2.py
+++ b/examples/widgets/tutorials/cannon/t2.py
@@ -59,4 +59,4 @@ if __name__ == '__main__':
quit.clicked.connect(app.quit)
quit.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t3.py b/examples/widgets/tutorials/cannon/t3.py
index cc551beda..fbbb9b71e 100644
--- a/examples/widgets/tutorials/cannon/t3.py
+++ b/examples/widgets/tutorials/cannon/t3.py
@@ -60,4 +60,4 @@ if __name__ == '__main__':
quit.clicked.connect(app.quit)
window.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t4.py b/examples/widgets/tutorials/cannon/t4.py
index 686358e36..b309c7bff 100644
--- a/examples/widgets/tutorials/cannon/t4.py
+++ b/examples/widgets/tutorials/cannon/t4.py
@@ -65,4 +65,4 @@ if __name__ == '__main__':
app = QApplication(sys.argv)
widget = MyWidget()
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t5.py b/examples/widgets/tutorials/cannon/t5.py
index 352d334f9..a4324a633 100644
--- a/examples/widgets/tutorials/cannon/t5.py
+++ b/examples/widgets/tutorials/cannon/t5.py
@@ -76,4 +76,4 @@ if __name__ == '__main__':
app = QApplication(sys.argv)
widget = MyWidget()
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t6.py b/examples/widgets/tutorials/cannon/t6.py
index e9be01413..c30fbfc6d 100644
--- a/examples/widgets/tutorials/cannon/t6.py
+++ b/examples/widgets/tutorials/cannon/t6.py
@@ -86,4 +86,4 @@ if __name__ == '__main__':
app = QApplication(sys.argv)
widget = MyWidget()
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t7.py b/examples/widgets/tutorials/cannon/t7.py
index 700185f41..f1c6798bb 100644
--- a/examples/widgets/tutorials/cannon/t7.py
+++ b/examples/widgets/tutorials/cannon/t7.py
@@ -108,4 +108,4 @@ if __name__ == '__main__':
app = QApplication(sys.argv)
widget = MyWidget()
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t8.py b/examples/widgets/tutorials/cannon/t8.py
index 20763741f..cc54194cf 100644
--- a/examples/widgets/tutorials/cannon/t8.py
+++ b/examples/widgets/tutorials/cannon/t8.py
@@ -151,4 +151,4 @@ if __name__ == '__main__':
widget = MyWidget()
widget.setGeometry(100, 100, 500, 355)
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/widgets/tutorials/cannon/t9.py b/examples/widgets/tutorials/cannon/t9.py
index ce36a8b89..36dcf8fb1 100644
--- a/examples/widgets/tutorials/cannon/t9.py
+++ b/examples/widgets/tutorials/cannon/t9.py
@@ -158,4 +158,4 @@ if __name__ == '__main__':
widget = MyWidget()
widget.setGeometry(100, 100, 500, 355)
widget.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())