From 16434e5519f6224e231bc5f7202f0e495eda7bb7 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Tue, 3 Jan 2023 00:52:18 +0100 Subject: Do rename qt=>tqt on source files, directories and libraries. Rename pyuic=>pytquic, pylupdate=>pytqlupdate. Do rename qt=>tqt on constants and variables. Do rename QT=>TQT on constants. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- examples/tut4.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/tut4.py') diff --git a/examples/tut4.py b/examples/tut4.py index 04e0a61..f61a054 100755 --- a/examples/tut4.py +++ b/examples/tut4.py @@ -3,24 +3,24 @@ # TQt tutorial 4. import sys -from PyTQt import qt +from PyTQt import tqt -class MyWidget(qt.TQWidget): +class MyWidget(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.setMinimumSize(200, 120) self.setMaximumSize(200, 120) - quit = qt.TQPushButton("Quit", self, "quit") + quit = tqt.TQPushButton("Quit", self, "quit") quit.setGeometry(62, 40, 75, 30) - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) w = MyWidget() w.setGeometry(100, 100, 200, 120) -- cgit v1.2.3