Boston Python Workshop/Friday handout: Difference between revisions

imported>Lsblakk
imported>Lsblakk
Line 44:
 
===Get project files===
<li>* 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** theWindows ColorWallusers, project fromtry http://mit.edu/jesstess/www/BostonPythonWorkshop/ColorWall.zip intofirst, thatand download it to your colorwall folder. The file should automatically get uncompressed when you download it.
<li>** OS X and Linux users can get .tar.gz file through Terminal with</li>
<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
wget http://mit.edu/jesstess/www/BostonPythonWorkshop/ColorWall.tar.gz
# unpack the tarball
tar -xvf ColorWall.tar.gz
 
</ul>
===InstallingInstall 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:</li>
===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
>>> 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>
 
===Run the ColorWall===
Anonymous user