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.
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/
#this has general introduction, instructions, etc (this file) /c/technical/python/pyglet.txt
Pyglet is available at: pyglet.org
I download the latest distribution and put it: /c/downloads/python/pyglet-1.1.3/
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 if you have access:
examples are a great place to start. they are located at: cd /c/downloads/python/pyglet-1.1.3/examples
also [2009.12.04 17:31:26] other related files for notes:
#this is used primarily for links and current (specific) notes /c/technical/python/pyglet/links.txt
/c/technical/python/pyglet/simplui.txt /c/technical/python/gui.txt
#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