summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/qt_widgets/__init__.py
blob: 3bbf9dc90128b8eac5f95e34afbe76277a154645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
labelText = 'Qt Widgets'
iconName = 'designer'

helpText = """Qt provides a rich set of widgets for application use.  
Select the children of this item to see for yourself."""

from qt import QFrame, QVBoxLayout, SIGNAL
from tdeui import KTextEdit


class MainFrame(QFrame):
    def __init__(self, parent=None):
        QFrame.__init__(self, parent)
        self.help = KTextEdit(helpText, '', self)
        layout = QVBoxLayout(self, 4)
        layout.addWidget(self.help)
        layout.addStretch(1)