Boston Python Workshop/Friday handout: Difference between revisions

Content added Content deleted
imported>Lsblakk
imported>Lsblakk
Line 44: Line 44:


===Get project files===
===Get project files===
* Create a folder on your desktop called colorwall</li>
<ol>
* Download the ColorWall project from http://mit.edu/jesstess/www/BostonPythonWorkshop into that folder
<li>Create a folder on your desktop called colorwall</li>
<li>Download the ColorWall project from http://mit.edu/jesstess/www/BostonPythonWorkshop into that folder
** Windows users, try http://mit.edu/jesstess/www/BostonPythonWorkshop/ColorWall.zip first, and download it to your colorwall folder. The file should automatically get uncompressed when you download it.
** OS X and Linux users can get .tar.gz file through Terminal
<ul>
<li>Windows users, try http://mit.edu/jesstess/www/BostonPythonWorkshop/ColorWall.zip first, and download it to your colorwall folder. The file should automatically get uncompressed when you download it.</li>
<li>OS X and Linux users can get .tar.gz file through Terminal with</li>
cd Desktop/colorwall
cd Desktop/colorwall
wget http://mit.edu/jesstess/www/BostonPythonWorkshop/ColorWall.tar.gz
wget http://mit.edu/jesstess/www/BostonPythonWorkshop/ColorWall.tar.gz
# unpack the tarball
# unpack the tarball
tar -xvf ColorWall.tar.gz
tar -xvf ColorWall.tar.gz

</ul>
===Install Tkinter===
</li>
The ColorWall project depends on Tkinter which is pre-installed on some Windows, OS X, and Linux* distributions. To check if you have Tkinter installed, open your Terminal/cmd window and start your Python prompt:
===Installing Tkinter===
The ColorWall project depends on Tkinter which is pre-installed on some Windows, OS X, and Linux* distributions. To check if you have Tkinter installed, open your Terminal/cmd window and start your Python prompt:</li>
python
python
>>> import Tkinter
>>> import Tkinter


If that command results in an <code>ImportError</code> try following the [http://tkinter.unpythonic.net/wiki/How_to_install_Tkinter instructions for installing Tkinter here] and if you have problems let a staff member know and we'll help you. (*On some Debian installation, when you <code>import Tkinter</code> it will tell you that you need to install the <code>python-tk</code> package, which you should do). After you are done at the Python prompt, exit to the regular terminal by typing <code>exit()</code> and hitting enter.</li>
If that command results in an <code>ImportError</code> try following the [http://tkinter.unpythonic.net/wiki/How_to_install_Tkinter instructions for installing Tkinter here] and if you have problems let a staff member know and we'll help you. (*On some Debian installation, when you <code>import Tkinter</code> it will tell you that you need to install the <code>python-tk</code> package, which you should do). After you are done at the Python prompt, exit to the regular terminal by typing <code>exit()</code> and hitting enter.


===Run the ColorWall===
===Run the ColorWall===