From e790d08307644b6718b2a547c21370b82aa4f376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 25 Sep 2016 11:01:09 +0200 Subject: Fix examples to properly import python_tqt module This resolves bug 2693 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- examples3/tut5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples3/tut5.py') diff --git a/examples3/tut5.py b/examples3/tut5.py index f084cdb..19cb6f7 100755 --- a/examples3/tut5.py +++ b/examples3/tut5.py @@ -3,7 +3,7 @@ # TQt tutorial 5. import sys -import qt +from python_tqt import qt class MyWidget(qt.TQVBox): @@ -13,7 +13,7 @@ class MyWidget(qt.TQVBox): 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()")) lcd = qt.TQLCDNumber(2, self, "lcd") -- cgit v1.2.1