aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tutorial
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-01-21 18:07:38 -0300
committerLauro Neto <lauro.neto@openbossa.org>2010-01-21 18:41:03 -0300
commit7cc317c53cccfc9126d1d1ae3c4a98b179fd8c43 (patch)
tree24d428d0da11d1ccef12a500a184dbf3360ee9c5 /examples/tutorial
parent52a693f4f79de443ad3564a4ca4be6f69e0c30bf (diff)
Fixing examples
- Import and signal connection - parent() override now calls QObject.parent - Fixed multiple inheritance - Static method usage - implicit conversions - use QUiLoader instead of uic Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'examples/tutorial')
-rwxr-xr-xexamples/tutorial/t14.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorial/t14.py b/examples/tutorial/t14.py
index 95e0621..121f840 100755
--- a/examples/tutorial/t14.py
+++ b/examples/tutorial/t14.py
@@ -160,7 +160,7 @@ class CannonField(QtGui.QWidget):
self.emit(QtCore.SIGNAL("missed()"))
self.emit(QtCore.SIGNAL("canShoot(bool)"), True)
else:
- region = region.unite(QtGui.QRegion(shotR))
+ region = region.united(QtGui.QRegion(shotR))
self.update(region)