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

« back to all changes in this revision

Viewing changes to examples/pykde-sampler/dialogs/about/__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 = 'About Dialogs'
 
2
iconName = 'info'
 
3
 
 
4
helpText = ("KDE has multiple dialog types to display information about your "
 
5
"applicaiton and environment.  They provide a tremendous amount of functionality "
 
6
"and consistency.  They're easy to use, and they're good for the environment!")
 
7
 
 
8
from qt import QFrame, QVBoxLayout
 
9
from kdeui import KTextEdit
 
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)