diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-01-03 00:52:18 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-20 02:10:39 +0100 |
commit | 16434e5519f6224e231bc5f7202f0e495eda7bb7 (patch) | |
tree | d0a3bc5f18eb65f89c1e6238dcf579e6c9cb80ad /examples/webbrowser/webbrowser.py | |
parent | 1c362264d328c8886d33061ab992750741f7933a (diff) | |
download | pytqt-16434e5519f6224e231bc5f7202f0e495eda7bb7.tar.gz pytqt-16434e5519f6224e231bc5f7202f0e495eda7bb7.zip |
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.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'examples/webbrowser/webbrowser.py')
-rw-r--r-- | examples/webbrowser/webbrowser.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/webbrowser/webbrowser.py b/examples/webbrowser/webbrowser.py index 44d3488..0ae8702 100644 --- a/examples/webbrowser/webbrowser.py +++ b/examples/webbrowser/webbrowser.py @@ -7,21 +7,21 @@ import sys -from PyTQt import qt -from PyTQt import qtaxcontainer +from PyTQt import tqt +from PyTQt import tqtaxcontainer import mainwindow class MainWindowImpl(mainwindow.MainWindow): def init(self): - self.pb = qt.TQProgressBar(self.statusBar()) + self.pb = tqt.TQProgressBar(self.statusBar()) self.pb.setPercentageVisible(False) self.pb.hide() self.statusBar().addWidget(self.pb, 0, True) - self.connect(self.WebBrowser, qt.SIGNAL("ProgressChange(int,int)"), self.setProgress) - self.connect(self.WebBrowser, qt.SIGNAL("StatusTextChange(const TQString&)"), self.statusBar(), qt.SLOT("message(const TQString&)")) + self.connect(self.WebBrowser, tqt.SIGNAL("ProgressChange(int,int)"), self.setProgress) + self.connect(self.WebBrowser, tqt.SIGNAL("StatusTextChange(const TQString&)"), self.statusBar(), tqt.SLOT("message(const TQString&)")) self.WebBrowser.dynamicCall("GoHome()"); @@ -29,7 +29,7 @@ class MainWindowImpl(mainwindow.MainWindow): def go(self): self.actionStop.setEnabled(True) - self.WebBrowser.dynamicCall("Navigate(const TQString&)", qt.TQVariant(self.addressEdit.text())) + self.WebBrowser.dynamicCall("Navigate(const TQString&)", tqt.TQVariant(self.addressEdit.text())) def setTitle(self, title): self.setCaption("TQt WebBrowser - " + title.latin1()) @@ -69,17 +69,17 @@ class MainWindowImpl(mainwindow.MainWindow): self.subwindows += window def aboutSlot(self): - qt.TQMessageBox.about(self, self.tr("About WebBrowser"), self.tr( + tqt.TQMessageBox.about(self, self.tr("About WebBrowser"), self.tr( """This Example has been created using the ActiveTQt integration into TQt Designer. It demonstrates the use of TQAxWidget to embed the Internet Explorer ActiveX control into a TQt application.""")) def aboutTQtSlot(self): - qt.TQMessageBox.aboutTQt(self, self.tr("About TQt")) + tqt.TQMessageBox.aboutTQt(self, self.tr("About TQt")) def main(args): - a = qt.TQApplication(args) + a = tqt.TQApplication(args) w = MainWindowImpl() a.setMainWidget(w) w.show() |