diff options
Diffstat (limited to 'examples/pykde-sampler/icon_handling/misc.py')
-rw-r--r-- | examples/pykde-sampler/icon_handling/misc.py | 12 |
1 files changed, 6 insertions, 6 deletions
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) |