Boston Python Workshop 3/Friday/OSX project dependencies: Difference between revisions
Content added Content deleted
imported>Jesstess (Created page with '==ColorWall== ===Download the ColorWall project=== You'll be writing graphical effects for an existing ColorWall project. Download this ColorWall code and example effects so yo…') |
imported>Lizdenys (edited for the no classes branch) |
||
Line 7: | Line 7: | ||
# Create a new folder called ColorWall on your Desktop |
# Create a new folder called ColorWall on your Desktop |
||
# Save the following files to the ColorWall folder: |
# Save the following files to the ColorWall folder: |
||
#* http://mit.edu/ |
#* http://web.mit.edu/lizdenys/www/BostonPythonWorkshop3/ColorWall/advanced_effects.py |
||
#* http://mit.edu/ |
#* http://web.mit.edu/lizdenys/www/BostonPythonWorkshop3/ColorWall/ascii8x8.py |
||
#* http://mit.edu/ |
#* http://web.mit.edu/lizdenys/www/BostonPythonWorkshop3/ColorWall/effects.py |
||
#* http://mit.edu/ |
#* http://web.mit.edu/lizdenys/www/BostonPythonWorkshop3/ColorWall/run.py |
||
#* http://web.mit.edu/lizdenys/www/BostonPythonWorkshop3/ColorWall/wall.py |
|||
===Test the ColorWall code=== |
===Test the ColorWall code=== |
||
Start a command prompt and navigate to the Desktop/ColorWall directory where the ColorWall code lives. For example, if the ColorWall project is at <code>/ |
Start a command prompt and navigate to the Desktop/ColorWall directory where the ColorWall code lives. For example, if the ColorWall project is at <code>/home/jesstess/Desktop/ColorWall</code>, |
||
<pre> |
<pre> |
||
cd / |
cd /home/jesstess/Desktop/ColorWall |
||
</pre> |
</pre> |
||
Line 33: | Line 34: | ||
at the command prompt to execute the run.py Python script. You should see a window pop up and start cycling through colorful effects. If you don't, let a staff member know. |
at the command prompt to execute the run.py Python script. You should see a window pop up and start cycling through colorful effects. If you don't, let a staff member know. |
||
Now type: |
|||
<pre> |
|||
python run.py -a -s |
|||
</pre> |
|||
at the command prompt to execute the run.py Python script so that it runs only the advanced effects. You should see a window pop up and start cycling through different colorful effects. If you don't, let a staff member know. |
|||
You can also run both sets of effects by typing: |
|||
<pre> |
|||
python run.py -a |
|||
</pre> |
|||
===Success!=== |
===Success!=== |