Size: 2516
Comment: Rounded-out sections
|
Size: 2686
Comment: Added TOC
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents(2)]]|| |
ContentsBRTableOfContents(2) |
This section is currently under development. If you would like to contribute, please feel free to do so!
Python is a programming language which makes it easy to create anything from small, useful tools to full-sized applications. The good news is that Ubuntu has excellent support for Python right out of the box. The great news is that you can get started right away using the advice and sample code in these Python recipes!
The aim of these recipes is to provide examples of useful Python code which you can use to learn more about Python, and to provide code which you can use as building blocks for writing your own software. All of the example code is distributed under a free software license, so you can use it in your own projects.
Getting started with Python
There are hundreds of Python resources available, including many books and online guides. Below is a small selection of what's available:
[http://www.python.org/ Python.org] - The official Python website
[:WelcomeToPython:Welcome to Python] - An introduction to Python
[http://wiki.python.org/moin/BeginnersGuide Python for Beginners] - A beginners' guide to Python
[http://www.diveintopython.org/ Dive Into Python] - An online book intended to help more experienced programmers learn Python
Graphical Applications
Most graphical software in Ubuntu uses GTK, the GIMP ToolKit. Python has excellent support for GTK through the PyGTK bindings.
[:PythonRecipes/HelloWorld:Hello World!] - The simplest graphical application you can write, Hello World is an easy-to-follow example of a graphical application
[:PythonRecipes/GTKBasics:GTK Basics] - Basic information on how GTK works and what all of the technical terms mean
[:PythonRecipes/WebBrowser:Simple Web Browser] - Thanks to the GtkMozEmbed widget, it's easy to write a simple web browser application
Packaging and distribution
Once you've written a Python application, you may want to package and distribute it so that other people can use it. These articles show you how.
[:PythonRecipes/DebianPackage:Creating a Debian Package]
- Publishing packages on Launchpad using your Personal Package Archive
Documentation, translations and other supporting material
For software to be useful to people, you need more than just code. Documentation and translations are an important part of the user experience.
- Writing man pages
Writing a DocBook user guide