summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/icon_handling/misc.py
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-03 22:23:44 -0600
committerTimothy Pearson <[email protected]>2011-12-03 22:23:44 -0600
commit203ba231d0276943aae36111f9ec1e949f3c6a4c (patch)
treef039f7a5b5fc2da88a96876971bac580d87f6788 /examples/pykde-sampler/icon_handling/misc.py
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
Diffstat (limited to 'examples/pykde-sampler/icon_handling/misc.py')
-rw-r--r--examples/pykde-sampler/icon_handling/misc.py12
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)