aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py')
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py
index 77dd4d51f..8732c1c67 100644
--- a/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py
+++ b/examples/widgets/graphicsview/dragdroprobot/dragdroprobot.py
@@ -124,7 +124,7 @@ class ColorItem(QGraphicsItem):
drag.setPixmap(pixmap)
drag.setHotSpot(QPoint(15, 20))
- drag.exec_()
+ drag.exec()
self.setCursor(Qt.OpenHandCursor)
def mouseReleaseEvent(self, event):
@@ -290,4 +290,4 @@ if __name__== '__main__':
view.setWindowTitle("Drag and Drop Robot")
view.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())