Python/lang-pt: Difference between revisions
m (fixing DIV anchors + Translated text) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Translation | lang = pt | source = Python | version = 36327}} |
|||
{{Ongoing Translation}} |
|||
{{anchor|Introduction}} |
|||
== Introdução == |
== Introdução == |
||
* O principal componente do [[OLPC Python Environment/lang-pt|OLPC Python Environment]] |
|||
* Um trabalho a ser feito como parte do [[OLPC Google Summer of Code]] será escrito em Python |
|||
* O site oficial do Python é http://www.python.org |
|||
* O site de Python brasileiro é http://www.pythonbrasil.com.br |
|||
{{ Translated text | |
|||
*The main component of the [[OLPC Python Environment]] |
|||
*The work that is being done on the user stack as part of the [[OLPC Google Summer of Code]] will be written in Python |
|||
*The main site for Python is http://www.python.org |
|||
| display = block }} |
|||
{{ Translated text | |
|||
*You can download nicely packaged Python called <nowiki>[http://www.activestate.com/Products/ActivePython/?pysbx=1 ActivePython]</nowiki>. They proclaim themselves as the All-in-one Python distribution for AIX, HP-UX, Linux, Mac OS X, Solaris, and Windows. |
|||
*Another package of Python that includes graphical modules including 3D is called [http://vpython.org/ Visual Python]. It is available for Windows, Mac, Linux and UNIX. |
|||
*There is also a scientific distribution of Python called [http://www.scipy.org/Download SciPy]. This also supports Windows, Mac and Linux. |
|||
[http://www.pygtk.org PyGTK] is the Python interface to the GTK GUI library used in the OLPC. This library is notable for a component named Pango which simplifies the use of multiple scripts and languages. In addition, it's basic drawing library, Cairo, has some of the best support of [[SVG]] rendering which is also a major component of the OLPC. |
|||
The premier graphing tool for Python which puts graphing calculators to shame is [http://matplotlib.sourceforge.net/ Matplotlib]. It does support output to GTK and to [[SVG]] which are both supported on the OLPC. However, there is another Python charting app called [http://home.gna.org/pychart/ PyChart] which is probably more suitable to being stripped down (remove Postscript) into a tool for the OLPC. |
|||
| display = block }} |
|||
{{anchor|Movable Python}} |
|||
== O portável Python == |
== O portável Python == |
||
{{ Translated text | |
|||
Can you develop applications in Python if you only have access to shared library PCs? |
|||
In fact, yes this is possible but it does cost a small amount. For £5 (about $9.50) you can buy a Python distribution called Movable Python sometimes referred to as Python-on-a-stick because it runs from a USB stick memory device. For that matter it runs from any USB-powered storage device so it could even be installed on a 20gig Freecom drive. It can be customized by adding your own libraries so you could install GTK+, PyGTK and any other bits that you need. |
|||
I haven't personally tried to run Movable Python together with PyGTK but if your GUI is simple then you can even develop using WAX or WxPython and then have someone port it to PyGTK later when you have a working product. |
|||
| display = block }} |
|||
{{anchor|Learning Python}} |
|||
== Aprendendo Python == |
== Aprendendo Python == |
||
{{ Translated text | |
|||
The [http://www.livewires.org.uk/python/ Livewires Python Course] may be useful to create some curriculum material to teach the kids how to write their own Python applications. It would need some adaptation to fit the OLPC environment. |
|||
The author of Python wrote a [http://docs.python.org/tut/ long tutorial]. |
|||
| display = block }} |
|||
{{anchor|Development Advise}} |
|||
== Recomendações para desenvolvimento == |
== Recomendações para desenvolvimento == |
||
Algumas coisas a considerar no desenvolvimento em Python: |
Algumas coisas a considerar no desenvolvimento em Python: |
||
* [http://www.pythonbrasil.com.br/moin.cgi/GuiaDeEstilo PEP 8] é o guia de Estilo Python. |
|||
* [[Python Unicode/lang-pt|Python Unicode]] |
|||
* [[Python Style Guide/lang-pt|Python Style Guide]] |
|||
* [[Guia Rápido de Python]] |
|||
{{ Translated text | |
|||
Some things to consider in Python development: |
|||
* [http://www.python.org/dev/peps/pep-0008/ PEP 8] is the Python style guide. On many issues the style guide suggests but does not require a particular style. Generally you should stick to the style guide, unless there is good reason not to. For instance, if you are interacting with a library (internal or external) that uses a different convention, don't try to translate the convention. |
|||
⚫ | |||
⚫ | |||
| display = block }} |
|||
⚫ | |||
[[Category:Software development]] |
|||
⚫ | |||
[[Category:Developers]] |
|||
[[Category:Programming language]] |
|||
[[Category:Python]] |
Latest revision as of 21:59, 7 June 2007
- This is an on-going translation
Introdução
- O principal componente do OLPC Python Environment
- Um trabalho a ser feito como parte do OLPC Google Summer of Code será escrito em Python
- O site oficial do Python é http://www.python.org
- O site de Python brasileiro é http://www.pythonbrasil.com.br
- The main component of the OLPC Python Environment
- The work that is being done on the user stack as part of the OLPC Google Summer of Code will be written in Python
- The main site for Python is http://www.python.org
- You can download nicely packaged Python called [http://www.activestate.com/Products/ActivePython/?pysbx=1 ActivePython]. They proclaim themselves as the All-in-one Python distribution for AIX, HP-UX, Linux, Mac OS X, Solaris, and Windows.
- Another package of Python that includes graphical modules including 3D is called Visual Python. It is available for Windows, Mac, Linux and UNIX.
- There is also a scientific distribution of Python called SciPy. This also supports Windows, Mac and Linux.
PyGTK is the Python interface to the GTK GUI library used in the OLPC. This library is notable for a component named Pango which simplifies the use of multiple scripts and languages. In addition, it's basic drawing library, Cairo, has some of the best support of SVG rendering which is also a major component of the OLPC.
The premier graphing tool for Python which puts graphing calculators to shame is Matplotlib. It does support output to GTK and to SVG which are both supported on the OLPC. However, there is another Python charting app called PyChart which is probably more suitable to being stripped down (remove Postscript) into a tool for the OLPC.
O portável Python
Can you develop applications in Python if you only have access to shared library PCs?
In fact, yes this is possible but it does cost a small amount. For £5 (about $9.50) you can buy a Python distribution called Movable Python sometimes referred to as Python-on-a-stick because it runs from a USB stick memory device. For that matter it runs from any USB-powered storage device so it could even be installed on a 20gig Freecom drive. It can be customized by adding your own libraries so you could install GTK+, PyGTK and any other bits that you need. I haven't personally tried to run Movable Python together with PyGTK but if your GUI is simple then you can even develop using WAX or WxPython and then have someone port it to PyGTK later when you have a working product.
Aprendendo Python
The Livewires Python Course may be useful to create some curriculum material to teach the kids how to write their own Python applications. It would need some adaptation to fit the OLPC environment.
The author of Python wrote a long tutorial.
Recomendações para desenvolvimento
Algumas coisas a considerar no desenvolvimento em Python:
- PEP 8 é o guia de Estilo Python.
- Python Unicode
- Python Style Guide
- Guia Rápido de Python
Some things to consider in Python development:
- PEP 8 is the Python style guide. On many issues the style guide suggests but does not require a particular style. Generally you should stick to the style guide, unless there is good reason not to. For instance, if you are interacting with a library (internal or external) that uses a different convention, don't try to translate the convention.