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=== |
||
⚫ | |||
<ol> |
|||
* 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. |
|||
⚫ | |||
<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> |
|||
⚫ | |||
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> |
|||
⚫ | |||
</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. |
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=== |