summaryrefslogtreecommitdiffstats
path: root/examples/uiqxembed.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-04 01:54:26 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-04 01:54:26 -0600
commit8fa6239b59e0627e8bc840342fe50d026f532dcd (patch)
treeccb8dac7f416fd0749132a5adca2b340ac6accbd /examples/uiqxembed.py
parent2627136bb0f3c43fb2d0cb48838ea70425d17241 (diff)
downloadpytde-8fa6239b59e0627e8bc840342fe50d026f532dcd.tar.gz
pytde-8fa6239b59e0627e8bc840342fe50d026f532dcd.zip
Rename TQXEmbed to correct QXEmbed
Diffstat (limited to 'examples/uiqxembed.py')
-rw-r--r--examples/uiqxembed.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/uiqxembed.py b/examples/uiqxembed.py
index 0275e0c..0f5f816 100644
--- a/examples/uiqxembed.py
+++ b/examples/uiqxembed.py
@@ -8,7 +8,7 @@ from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
from tdecore import KAboutData, KApplication, KCmdLineArgs, KGlobal, KIcon
from tdecore import KWin, KWinModule
-from tdeui import KComboBox, KMainWindow, KPushButton, TQXEmbed
+from tdeui import KComboBox, KMainWindow, KPushButton, QXEmbed
## add the missing items to the pyuic-generated module
@@ -16,7 +16,7 @@ import qxembedexample
qxembedexample.KComboBox = KComboBox
qxembedexample.KPushButton = KPushButton
-from qxembedexample import TQXEmbedExample
+from qxembedexample import QXEmbedExample
def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall):
@@ -42,12 +42,12 @@ def getWindow(pid):
return info
-class ExampleForm(TQXEmbedExample):
+class ExampleForm(QXEmbedExample):
""" wraps the pyuic generated form class with our behavior
"""
def __init__(self, parent):
- TQXEmbedExample.__init__(self, parent)
+ QXEmbedExample.__init__(self, parent)
combo = self.appNameCombo
items = [(idx, '%s' % combo.text(idx)) for idx in range(combo.count())]
for idx, name in items:
@@ -80,7 +80,7 @@ class ExampleForm(TQXEmbedExample):
winobj = getWindow(pid)
if winobj:
tabs = self.mainTabs
- embedded = TQXEmbed(self)
+ embedded = QXEmbed(self)
caption = '%s (%s)' % (winobj.name, pid, )
tabs.insertTab(embedded, caption)
embedded.embed(winobj.win)
@@ -101,8 +101,8 @@ class ExampleMain(KMainWindow):
if __name__ == '__main__':
- aname = 'PyKDE TQXEmbed Sample'
- desc = 'A Simple PyKDE TQXEmbed Sample'
+ aname = 'PyKDE QXEmbed Sample'
+ desc = 'A Simple PyKDE QXEmbed Sample'
ver = '1.0'
lic = KAboutData.License_GPL
author = 'Troy Melhase'