Difference between revisions of "Development/Languages/Python"

Jump to: navigation, search
(Added pyRad to the examples)
(Applications using PyKDE: Adding synaptiks)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Development/Languages/Python}}
 
  
 
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/.
 
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/.
Line 12: Line 11:
  
 
The code in subversion can be browsed online via http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/.
 
The code in subversion can be browsed online via http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/.
 +
 +
Or from KDE's git repository:
 +
 +
git clone git://anongit.kde.org/pykde4
  
 
==Documentation and Tutorials==
 
==Documentation and Tutorials==
Line 21: Line 24:
 
* [[/PyKDE_WebKit_Tutorial|PyKDE WebKit Tutorial]], a simple web browser application in PyKDE
 
* [[/PyKDE_WebKit_Tutorial|PyKDE WebKit Tutorial]], a simple web browser application in PyKDE
 
* [[Development/Tutorials/Python introduction to signals and slots|introduction to signals and slots]]
 
* [[Development/Tutorials/Python introduction to signals and slots|introduction to signals and slots]]
 +
* [[Development/Tutorials/Python-hello world|Hello world]]. An example that you can also use as a starting point for your development.
 
* [http://www.rkblog.rk.edu.pl/w/p/introduction-pyqt4/ Introduction article about PyQt4]
 
* [http://www.rkblog.rk.edu.pl/w/p/introduction-pyqt4/ Introduction article about PyQt4]
 
* [http://lateral.netmanagers.com.ar/stories/BBS47.html PyQt by Example]
 
* [http://lateral.netmanagers.com.ar/stories/BBS47.html PyQt by Example]
 
* [[/PyKDE_DBus_Tutorial|Python DBus Tutorial]]. See how to call dbus methods from PyKDE.
 
* [[/PyKDE_DBus_Tutorial|Python DBus Tutorial]]. See how to call dbus methods from PyKDE.
 +
* [[/PyKDE_Knotify_Tutorial|Python KNotify Tutorial]]. How to use Notification and Jobs in your Applications
 
* [[Development/Tutorials/Phonon/Introduction/Python|Phonon Example]]
 
* [[Development/Tutorials/Phonon/Introduction/Python|Phonon Example]]
 
* [[Development/Tutorials/Plasma#Plasma_Programming_with_Python|Plasma tutorials]]
 
* [[Development/Tutorials/Plasma#Plasma_Programming_with_Python|Plasma tutorials]]
Line 48: Line 53:
 
*[https://code.launchpad.net/~jr/install-package/trunk install-package], graphical apt-get
 
*[https://code.launchpad.net/~jr/install-package/trunk install-package], graphical apt-get
 
*[http://draketo.de/light/english/pyrad pyRad], wheel type command interface
 
*[http://draketo.de/light/english/pyrad pyRad], wheel type command interface
*[http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/examples/ some examples are in the PyKDE source]
+
*[https://projects.kde.org/projects/kde/kdebindings/pykde4/repository/revisions/master/show/examples/ some examples are in the PyKDE source]
 
+
*[https://projects.kde.org/projects/kde/kdeexamples/repository/revisions/master/show/bindings/python/ there are also python examples in the kdeexamples project]
 +
*[http://websvn.kde.org/trunk/KDE/kdegames/kajongg/ Kajongg], a board game
 +
*[http://synaptiks.readthedocs.org Synaptiks], a touchpad configuration and management tool.
 
[[Category:Python]]
 
[[Category:Python]]

Latest revision as of 20:05, 31 January 2013

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/.

Or from KDE's git repository:

git clone git://anongit.kde.org/pykde4

Contents

[edit] Documentation and 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

[edit] Applications using PyKDE


This page was last modified on 31 January 2013, at 20:05. This page has been accessed 60,798 times. Content is available under 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