summaryrefslogtreecommitdiffstats
path: root/examples/webbrowser/webbrowser.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webbrowser/webbrowser.py')
-rw-r--r--examples/webbrowser/webbrowser.py18
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()