diff options
Diffstat (limited to 'examples/uiqxembed.py')
| -rw-r--r-- | examples/uiqxembed.py | 14 | 
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' | 
