summaryrefslogtreecommitdiffstats
path: root/examples3/tut10.py
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-09-25 11:01:09 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-09-25 11:01:19 +0200
commitf303e4dc2ba3075192db2ab1fc570abd10ba224a (patch)
treeeb4cc574e4f5a98bcc1f24ebab980cc38e3354e0 /examples3/tut10.py
parentd6f454456232c37c2adc43da7172197dae4c973a (diff)
downloadpytqt-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/tut10.py')
-rwxr-xr-xexamples3/tut10.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples3/tut10.py b/examples3/tut10.py
index 919ea7e..310f000 100755
--- a/examples3/tut10.py
+++ b/examples3/tut10.py
@@ -3,7 +3,7 @@
# TQt tutorial 10.
import sys
-import qt
+from python_tqt import qt
class LCDRange(qt.TQVBox):
@@ -101,7 +101,7 @@ class MyWidget(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(self, "angle")
self.angle.setRange(5, 70)