KDE TechBase
  • Page
  • Discussion
  • Edit
  • History
KDE TechBase is a Wiki - You can help! Please contribute! Questions?
Please ask development related questions in the KDE Community Forum.

Development/Languages/Python

< Development | Languages

Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenščina | српски | Українська | 简体中文 | 繁體中文

Python is a powerful object oriented, dynamic language. You can find out more about the language itself on the Python website at http://www.python.org/.

Two important pieces of software are needed to develop KDE applications using Python, PyQt and PyKDE. PyQt provides Python support for the Qt library which KDE is built on. PyQt can be obtained at http://www.riverbankcomputing.co.uk/software/pyqt/ . Riverbank Computing has a lot of good documentation about how to use PyQt to create pure Qt applications. If you are new to KDE / Python development, then learning how to use PyQt is the best first step.

PyKDE builds on top of PyQt and adds Python support for KDE's libraries and technologies.

PyKDE is distributed as part of the kdebindings module. Stable releases can be downloaded from the normal KDE download page, although it is usually easier to install pre-built packages from your operating system distribution. You can also obtain PyKDE from KDE's subversion repository:

svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebindings/python/pykde4

The code in subversion can be browsed online via http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/.

Contents

  • 1 Documentation and Tutorials
    • 1.1 KDE 3 and PyKDE 3
  • 2 Further reading and information
  • 3 Applications using PyKDE

[edit] Documentation and Tutorials

  • PyQt home page and documentation
  • Using PyKDE 4
  • PyKDE WebKit Tutorial, a simple web browser application in PyKDE
  • KDE 4.2 API class reference for PyKDE4.
  • introduction to signals and slots
  • Introduction article about PyQt4
  • PyQt by Example
  • Python DBus Tutorial. See how to call dbus methods from PyKDE.
  • Phonon Example
  • Plasma tutorials


[edit] KDE 3 and PyKDE 3

Documentation and tutorials for the older PyQt and PyKDE 3.

  • Python-Qt tutorial
    In this tutorial, the basic steps of creating a Qt-based application with PyQt are explained.

[edit] Further reading and information

  • PyQt and PyKDE mailing list
  • PyKDE Homepage
  • The PyQt and PyKDE community Wiki
  • The book Rapid GUI Programming with Python and Qt is available and covers Qt 4 programming with Python.
  • The IRC channel #kubuntu-devel on freenode often has PyKDE programmers in it.
  • The IRC channel #pyqt on freenode is used by some PyQt application developers.

[edit] Applications using PyKDE

  • printer-applet
  • system-config-printer-kde
  • Guidance Power Manager, a battery applet
  • Ubiquity, installer for Kubuntu
  • GDebi, .deb package installer
  • install-package, graphical apt-get
  • some examples are in the PyKDE source
Retrieved from "http://techbase.kde.org/Development/Languages/Python"
Category: Python

Navigation

  • Home
  • Help
  • Recent changes

Sections

  • Getting started
  • Development
  • Schedules
  • Policies
  • Contribute
  • Projects

Toolbox

  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link

Personal tools

  • 38.107.191.97
  • Talk for this IP
  • Log in / create account
  • Login with OpenID
Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal