summaryrefslogtreecommitdiffstats
path: root/examples/pytde-sampler/icon_handling/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pytde-sampler/icon_handling/misc.py')
-rw-r--r--examples/pytde-sampler/icon_handling/misc.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/pytde-sampler/icon_handling/misc.py b/examples/pytde-sampler/icon_handling/misc.py
new file mode 100644
index 0000000..cab3571
--- /dev/null
+++ b/examples/pytde-sampler/icon_handling/misc.py
@@ -0,0 +1,31 @@
+
+iconName = 'icons'
+labelText = 'Misc.'
+
+
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint
+from tdecore import i18n
+from tdeui import KAboutDialog, KPushButton, KBugReport, KTextEdit
+from tdeui import KRootPermsIcon, KWritePermsIcon
+
+
+helpText = ("Samples for the KRootPermsIcon and KWritePermsIcon classes."
+ "These icons don't do anything.")
+
+
+class MainFrame(TQFrame):
+ def __init__(self, parent=None):
+ TQFrame.__init__(self, parent)
+
+ layout = TQVBoxLayout(self, 4)
+ layout.setAutoAdd(True)
+
+ self.help = KTextEdit(helpText, '', self)
+ self.root = KRootPermsIcon(None)
+ 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, TQPoint(0,0), True)