Executing Blocks and Monitor source code
============================================

Blocks e Monitor were developed using Python, GTK and
some other libraries, in order to run the source code downloaded
from the repository, you need to have:

* Python 2.5 or 2.6
* GTK

and the following python modules:

* pygobject
* pycairo
* pygtk
* pyserial
* kiwi

Debian and Ubuntu
-----------------

First install necessary packages::
    
    # apt-get update
    # apt-get install python2.5 python-cairo python-gtk2 python-kiwi python-serial
 
For Blocks::

    $ svn co https://br-gogo.svn.sourceforge.net/svnroot/br-gogo/host/blocos/trunk blocos
    $ cd blocos
    $ python Blocos.py
    
For Monitor::

    $ svn co https://br-gogo.svn.sourceforge.net/svnroot/br-gogo/host/monitor/trunk monitor
    $ cd monitor
    $ python2.5 Monitor.py

If you don't know how to work with SVN, See Working_with_SVN_

.. _Working_with_SVN: WorkingWithSVN.html

Windows
-------

Please, download and install this_.

.. _this: https://sourceforge.net/projects/br-gogo/files/Br_Gogo_python.exe/download

Or download and install these packages (in this order!):

* `python 2.5 <http://www.python.org/download/releases/2.5.4/>`_
* `Glade/Gtk+ for Windows <http://sourceforge.net/projects/gladewin32/files/glade-win32/3.6.1/Glade3-3.6.1.exe/download>`_
* `Python for Windows extensions <http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/pywin32-214.win32-py2.5.exe/download>`_
* `python-gobject <http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.14/pygobject-2.14.2-2.win32-py2.5.exe>`_
* `python-cairo <http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.4/pycairo-1.4.12-2.win32-py2.5.exe>`_
* `python-gtk <http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.12/pygtk-2.12.1-3.win32-py2.5.exe>`_
* `python-serial <http://sourceforge.net/projects/pyserial/files/pyserial/2.5/pyserial-py3k-2.5-rc1.win32.exe/download>`_
* `python-kiwi <http://ftp.gnome.org/pub/GNOME/binaries/win32/kiwi/kiwi-1.9.25.win32.exe>`_

(links verified in October 13th, 2010)

Now that you have installed Python, you need to copy the latest version of the software repository. You have two options:

* Copy the newest version fro the SVN repository. See Working_with_SVN_

.. _Working_with_SVN: WorkingWithSVN.html

(Good Luck!)