summaryrefslogtreecommitdiffstats
path: root/examples/webbrowser
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webbrowser')
-rw-r--r--examples/webbrowser/mainwindow.py8
-rw-r--r--examples/webbrowser/webbrowser.py18
2 files changed, 13 insertions, 13 deletions
diff --git a/examples/webbrowser/mainwindow.py b/examples/webbrowser/mainwindow.py
index 24ca188..2d4e740 100644
--- a/examples/webbrowser/mainwindow.py
+++ b/examples/webbrowser/mainwindow.py
@@ -3,13 +3,13 @@
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created: Sun Dec 5 14:50:47 2004
-# by: The PyTQt User Interface Compiler (pyuic) snapshot-20041203
+# by: The PyTQt User Interface Compiler (pytquic) snapshot-20041203
#
# WARNING! All changes made in this file will be lost!
-from PyTQt.qt import *
-from PyTQt.qtaxcontainer import TQAxWidget
+from PyTQt.tqt import *
+from PyTQt.tqtaxcontainer import TQAxWidget
image0_data = [
"32 32 3 1",
@@ -925,7 +925,7 @@ class MainWindow(TQMainWindow):
self.setName("MainWindow")
- self.setCentralWidget(TQWidget(self,"qt_central_widget"))
+ self.setCentralWidget(TQWidget(self,"tqt_central_widget"))
MainWindowLayout = TQHBoxLayout(self.centralWidget(),0,6,"MainWindowLayout")
self.Frame3 = TQFrame(self.centralWidget(),"Frame3")
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()