~ubuntu-branches/ubuntu/karmic/python-kde3/karmic

« back to all changes in this revision

Viewing changes to examples/pykde-sampler/basic_widgets/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-11-22 19:03:34 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061122190334-z7nhzu4dca926iam
Tags: 3.16.0-0ubuntu1
* New upstream release
* Build-depend on pyqt 3.17 and sip 4.5
* Add build-depends on /usr/lib/kde3/libkonsolepart.so
* Don't build for python 2.5, it fails to build
* Merge with Debian, remaining change:
  - kubuntu_01_dcop.diff patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
labelText = 'Widgets'
 
2
iconName = 'about_kde'
 
3
 
 
4
helpText = """KDE provides a large set of basic widgets for application use.  
 
5
Select the children of this item to see for yourself."""
 
6
 
 
7
from qt import QFrame, QVBoxLayout
 
8
from kdeui import KTextEdit
 
9
 
 
10
 
 
11
class MainFrame(QFrame):
 
12
    def __init__(self, parent=None):
 
13
        QFrame.__init__(self, parent)
 
14
        layout = QVBoxLayout(self)
 
15
        self.text = KTextEdit(helpText, '', self)
 
16
        layout.addWidget(self.text, 1)
 
17
        layout.addStretch(1)