1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
iconName = 'icons'
labelText = 'Misc.'
from PyTQt.qt import TQFrame, TQHBoxLayout, TQVBoxLayout, SIGNAL, TQPoint
from tdecore import i18n
from tdeui import TDEAboutDialog, 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)
|