diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-02 17:01:28 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-02 17:03:43 -0300 |
commit | 9edeedb37163e71a0040417169ca9aae9e7e6e83 (patch) | |
tree | 7a89c3f023bc5e013ed94067c6013bce8aec4917 /examples/tutorial | |
parent | ce9b2dfe456f38a166314dc2807a6b27cd944127 (diff) |
Updated examples to new api.
Diffstat (limited to 'examples/tutorial')
-rwxr-xr-x | examples/tutorial/t14.py | 4 | ||||
-rwxr-xr-x | examples/tutorial/t8.py | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/examples/tutorial/t14.py b/examples/tutorial/t14.py index 103160a..121f840 100755 --- a/examples/tutorial/t14.py +++ b/examples/tutorial/t14.py @@ -327,16 +327,12 @@ class GameBoard(QtGui.QWidget): hitsLabel = QtGui.QLabel("HITS") shotsLeftLabel = QtGui.QLabel("SHOTS LEFT") - print "AAAA" QtGui.QShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Enter), self, self.fire) - print "AAA3" QtGui.QShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Return), self, self.fire) - print "AAAA2" QtGui.QShortcut(QtGui.QKeySequence(QtCore.Qt.CTRL + QtCore.Qt.Key_Q), self, QtCore.SLOT("close()")) - print "DUUUDASSDD" topLayout = QtGui.QHBoxLayout() topLayout.addWidget(shoot) diff --git a/examples/tutorial/t8.py b/examples/tutorial/t8.py index 41a4838..f5ace10 100755 --- a/examples/tutorial/t8.py +++ b/examples/tutorial/t8.py @@ -68,7 +68,7 @@ class CannonField(QtGui.QWidget): def paintEvent(self, event): painter = QtGui.QPainter(self) - painter.drawText(200, 200, "Angle = " + QtCore.QString.number(self.currentAngle)) + painter.drawText(200, 200, "Angle = %d" % self.currentAngle) class MyWidget(QtGui.QWidget): |