diff options
Diffstat (limited to 'examples/pykde-sampler/icon_handling')
-rw-r--r-- | examples/pykde-sampler/icon_handling/__init__.py | 8 | ||||
-rw-r--r-- | examples/pykde-sampler/icon_handling/misc.py | 12 | ||||
-rw-r--r-- | examples/pykde-sampler/icon_handling/sizes.py | 10 |
3 files changed, 15 insertions, 15 deletions
diff --git a/examples/pykde-sampler/icon_handling/__init__.py b/examples/pykde-sampler/icon_handling/__init__.py index bf27f0a..2a525ac 100644 --- a/examples/pykde-sampler/icon_handling/__init__.py +++ b/examples/pykde-sampler/icon_handling/__init__.py @@ -6,13 +6,13 @@ helpText = ("KDE icons are nice. " "Select the children of this item to see for yourself.") -from qt import QFrame, QVBoxLayout +from qt import TQFrame, TQVBoxLayout from tdeui import KTextEdit -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) - layout = QVBoxLayout(self) + TQFrame.__init__(self, parent) + layout = TQVBoxLayout(self) self.text = KTextEdit(helpText, '', self) layout.addWidget(self.text, 1) diff --git a/examples/pykde-sampler/icon_handling/misc.py b/examples/pykde-sampler/icon_handling/misc.py index 5167362..cab3571 100644 --- a/examples/pykde-sampler/icon_handling/misc.py +++ b/examples/pykde-sampler/icon_handling/misc.py @@ -3,7 +3,7 @@ iconName = 'icons' labelText = 'Misc.' -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL, QPoint +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint from tdecore import i18n from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit from tdeui import KRootPermsIcon, KWritePermsIcon @@ -13,19 +13,19 @@ helpText = ("Samples for the KRootPermsIcon and KWritePermsIcon classes." "These icons don't do anything.") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.setAutoAdd(True) self.help = KTextEdit(helpText, '', self) self.root = KRootPermsIcon(None) - self.root.reparent(self, 0, QPoint(0,0), True) + self.root.reparent(self, 0, TQPoint(0,0), True) import os fn = os.path.abspath('.') print fn self.write = KWritePermsIcon(fn) - self.write.reparent(self, 0, QPoint(0,0), True) + self.write.reparent(self, 0, TQPoint(0,0), True) diff --git a/examples/pykde-sampler/icon_handling/sizes.py b/examples/pykde-sampler/icon_handling/sizes.py index 37fabaf..af7226d 100644 --- a/examples/pykde-sampler/icon_handling/sizes.py +++ b/examples/pykde-sampler/icon_handling/sizes.py @@ -3,7 +3,7 @@ iconName = 'icons' labelText = 'Icon Sizing' -from qt import QFrame, QHBoxLayout, QVBoxLayout, SIGNAL +from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL from tdecore import i18n from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit @@ -11,14 +11,14 @@ from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit helpText = ("") -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.button = KPushButton(i18n('Show Bug Report Dialog'), self) self.help = KTextEdit(helpText, '', self) - layout = QVBoxLayout(self, 4) + layout = TQVBoxLayout(self, 4) layout.addWidget(self.help) - buttonlayout = QHBoxLayout(layout, 4) + buttonlayout = TQHBoxLayout(layout, 4) buttonlayout.addWidget(self.button) buttonlayout.addStretch(1) layout.addStretch(1) |