summaryrefslogtreecommitdiffstats
path: root/examples/tutorial/t11.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-06-18 13:15:27 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-06-18 11:52:55 +0000
commit5d88488592f55aa8d81b3256a4e76cfdf1a7f050 (patch)
tree11a197a6fb2b17747edee52bfcd8e2a11e843207 /examples/tutorial/t11.py
parent59694f8bf1c2f81c00d15fffef3060509d2a4b63 (diff)
Remove semicolon from examples
Task-number: PYSIDE-712 Change-Id: Ib91e4fec88bdb7146e54c285c7f4da60deecb6cf Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/tutorial/t11.py')
-rw-r--r--examples/tutorial/t11.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tutorial/t11.py b/examples/tutorial/t11.py
index 46e24e0d..b028fc22 100644
--- a/examples/tutorial/t11.py
+++ b/examples/tutorial/t11.py
@@ -112,7 +112,7 @@ class CannonField(QtWidgets.QWidget):
if angle < 5:
angle = 5
if angle > 70:
- angle = 70;
+ angle = 70
if self.currentAngle == angle:
return
self.currentAngle = angle
@@ -128,7 +128,7 @@ class CannonField(QtWidgets.QWidget):
force = 0
if self.currentForce == force:
return
- self.currentForce = force;
+ self.currentForce = force
self.emit(QtCore.SIGNAL("forceChanged(int)"), self.currentForce)
@QtCore.Slot()
@@ -162,7 +162,7 @@ class CannonField(QtWidgets.QWidget):
self.paintShot(painter)
def paintShot(self, painter):
- painter.setPen(QtCore.Qt.NoPen);
+ painter.setPen(QtCore.Qt.NoPen)
painter.setBrush(QtCore.Qt.black)
painter.drawRect(self.shotRect())