reboot.
jump. jump. jump.

phowa. release consciousness to buddha mind.

To run your script from the Finder you have two options:

* Drag it to PythonLauncher
* Select PythonLauncher as the default application to open your script (or any .py script) through the finder Info window and double-click it. PythonLauncher has various preferences to control how your script is launched. Option-dragging allows you to change these for one invocation, or use its Preferences menu to change things globally.

http://docs.python.org/using/mac.html

for other operating systems, it should be reasonably easy to make an icon that launches the script

this also looked like a good solution for making executables:
http://cx-freeze.sourceforge.net/


===========
Pyglet
===========
Pyglet is available at:
pyglet.org

I download the latest distribution and put it:
/c/downloads/python/pyglet-1.1.3/

sudo python setup.py develop

the documentation included with pyglet is fantastic

the html docs start at:
file:///c/downloads/python/pyglet-1.1.3/doc/html/index.html
( CopyAllUrls will not load local (file:///) links )

Docs are also available online:
http://www.pyglet.org/doc/
pyglet Documentation Index
http://www.pyglet.org/doc/programming_guide/index.html
Programming Guide
http://www.pyglet.org/doc/api/index.html
pyglet API reference

also [2009.12.04 17:31:26]
other related files for notes:
/c/technical/python/pyglet.txt
/c/technical/python/gui.txt



examples are a great place to start. they are located at:
cd /c/downloads/python/pyglet-1.1.3/examples

#other sample files:

#this is a good file for getting a window to show up using only pyglet:
/c/charles/code/python/pyglet/sample.py
#try running it via command line! should see a white window

#this demo is based off of simplui:
/c/charles/code/python/pyglet/browser/demo.py


also [2011.03.07 14:21:47]
to use a different branch:

cd /c/downloads/python-testing/
hg clone https://pyglet.googlecode.com/hg/ pyglet-cocoa
cd pyglet-cocoa
#to switch to cocoa-port:
hg update cocoa-port

sudo python setup.py develop
#this makes pyglet version from version control live