diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2016-09-25 11:01:09 +0200 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-25 11:01:19 +0200 |
| commit | f303e4dc2ba3075192db2ab1fc570abd10ba224a (patch) | |
| tree | eb4cc574e4f5a98bcc1f24ebab980cc38e3354e0 /examples3/tut14.py | |
| parent | d6f454456232c37c2adc43da7172197dae4c973a (diff) | |
| download | pytqt-f303e4dc2ba3075192db2ab1fc570abd10ba224a.tar.gz pytqt-f303e4dc2ba3075192db2ab1fc570abd10ba224a.zip | |
Fix examples to properly import python_tqt module
This resolves bug 2693
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e790d08307644b6718b2a547c21370b82aa4f376)
Diffstat (limited to 'examples3/tut14.py')
| -rwxr-xr-x | examples3/tut14.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples3/tut14.py b/examples3/tut14.py index c442767..9f89a9b 100755 --- a/examples3/tut14.py +++ b/examples3/tut14.py @@ -5,7 +5,7 @@ import sys import math import random -import qt +from python_tqt import qt class LCDRange(qt.TQWidget): @@ -277,7 +277,7 @@ class GameBoard(qt.TQWidget): quit = qt.TQPushButton("&Quit", self, "quit") quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()")) + self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) self.angle = LCDRange("ANGLE", self, "angle") self.angle.setRange(5, 70) @@ -316,7 +316,7 @@ class GameBoard(qt.TQWidget): accel = qt.TQAccel(self) accel.connectItem(accel.insertItem(qt.TQt.Key_Enter), self.fire) accel.connectItem(accel.insertItem(qt.TQt.Key_Return), self.fire) - accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.qApp, qt.SLOT("quit()")) + accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.tqApp, qt.SLOT("quit()")) grid = qt.TQGridLayout(self, 2, 2, 10) grid.addWidget(quit, 0, 0) |
