Anonymous user
Boston Python Workshop/Friday handout: Difference between revisions
Boston Python Workshop/Friday handout (view source)
Revision as of 07:58, 18 August 2013
, 10 years agoremoving spam
imported>Brittag (removing spam) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 23:
gedit
== How to get to a Python prompt ==
Often in these directions, you'll need to type things at Python prompt. To get one:
* On Windows: Start -> Run -> cmd.exe
** Type this, and press enter:
** \python27\python
* On Linux or Mac OS:
** Open a Terminal, and type 'python'
== Intro to Programming stream: Setting up for the ColorWall ==
Line 53 ⟶ 61:
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 example effects:
* On Windows, assuming the ColorWall software was downloaded to C:\Users\yourusername\Desktop\ColorWall
run \Python27\python.exe "C:\Users\yourusername\Desktop\colorwall\ColorWall\run.py"
* On OS X, assuming the ColorWall software was downloaded to ~/Desktop/colorwall/ColorWall run
python ~/Desktop/colorwall/ColorWall/run.py
* On Linux, assuming the ColorWall software was downloaded to ~/Desktop/colorwall/ColorWall run
python ~/Desktop/colorwall/ColorWall/run.py
=== Open run.py in text editor ===
|