wow...
text edit really does work without having installed emacs, or any other packages besides base ubuntu and python settings

unfortunate that pyglet application runs so heavily...
and that should be with an event loop tuned not to do that... hm.

working on gui for launcher
would like to have a server built in
for gui and server to run in same thread, server needs to be non-blocking
standard socket servers don't work this way

on to something asynchronous
pyglet's standard loop works with callbacks, thus is somewhat asynchronous

this is a nice description of different asynchronous servers in python:
http://nichol.as/asynchronous-servers-in-python

found with:
http://www.google.com/search?client=ubuntu&channel=fs&q=python+asynchronous&ie=utf-8&oe=utf-8

looks like cocoa branch has been merged with trunk
hg clone https://pyglet.googlecode.com/hg/ pyglet-trunk
cd pyglet-trunk
sudo python setup.py develop

requested [2011.01.18 11:43:13]
look into status of Pyglet and Cocoa / Objective C
also [2011.01.24 14:55:14]
recent thread (today) on pyglet-users on updating...
sounds like there are some issues with PyObjC bridge itself... not able to go full screen(!)

/c/technical/instances.txt
/c/technical/python/pyglet-general.txt
/c/technical/python/pyglet.txt

download the cocoa-port branch for pyglet
investigate differences
view approaches for opening a window context there.

also [2011.01.25 14:47:53]
hg clone https://pyglet.googlecode.com/hg/ pyglet-cocoa
cd pyglet-cocoa
#to switch to cocoa-port:
hg update cocoa-port

Python /c/moments/moments/scripts/diff_directories.py /c/downloads/python-testing/pyglet-cocoa/ /c/downloads/python-testing/pyglet-hg/

mkdir -p /c/downloads/python/
cd /c/downloads/python/
hg clone https://pyglet.googlecode.com/hg/ pyglet
cd pyglet
sudo python setup.py develop (or install)

finished on friday
requested [2010.03.09 09:42:31] todo 20100309
get audio recording to work as an event dispatcher

===========
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

no generalized notes for using pyglet
granted the documentation included with pyglet is fantastic
should still be some reference to where to look first
which parts are best
and where those docs live if downloaded locally.

notes are also scattered about in various scripts and libraries.
need to distill lessons learned

also [2011.01.25 15:23:09]
#this has general introduction, instructions, etc
/c/technical/python/pyglet-general.txt
originally: [2009.12.04 17:33:08]

remember that colors are (usually) specified as floating point numbers with values between 0 and 1.0

http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=pyglet+colors&btnG=Google+Search
pyglet colors - Google Search
http://tartley.com/files/stretching_pyglets_wings/presentation/
Stretching pyglet's Wings
http://groups.google.com/group/pyglet-users/browse_thread/thread/920eed93e5fc1ea5
Drawing a grid (with lines) - pyglet-users | Google Groups

local files do not work with copyAllUrls
file:///c/python/pyglet/pyglet.txt
file:///c/python/pyglet/doc/html/index.html
file:///c/python/pyglet/doc/html/programming_guide/index.html
file:///c/python/pyglet/doc/html/api/index.html

when playing back media on mac, make sure you are using a terminal associated with the currently logged in user!!
using a different user will allow the video to show up

pygame developers strongly discourage using QT, wxWindows mixed with pygame... might be able to get away with it in pyglet, but still have the two event loop issues.

http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla:en-US:official&hs=FfF&ei=ukskSqSDJYLyMoLfgacJ&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=pygame+gui&spell=1
pygame gui - Google Search
http://www.pygame.org/wiki/gui
pygame - python game development


seems like multitouch may need it's own category... not sure where it should live yet.

be sure to add in a way to exit the program if you enable fullscreen mode!
will lock out everything else if you don't!!
hehe... oops
reboot

investigating the "Observer Pattern" used in the event framework for pyglet
very similar to asynchronous

http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=pyglet+gui&btnG=Google+Search
pyglet gui - Google Search
http://github.com/irskep/pyflipcard/tree/master
irskep's pyflipcard at master - GitHub
http://entitycrisis.blogspot.com/2009/01/embedded-gui-continued.html
Entity Crisis: The Embedded GUI, continued...
http://www.mechanicalcat.net/richard/log?year=2007&month=6
Richard Jones' Log
http://pyglet.googlecode.com/svn/trunk/DESIGN
http://pyglet.googlecode.com/svn/trunk/DESIGN
http://code.google.com/p/pyglet/
pyglet - Google Code
http://groups.google.com/group/pyglet-users/search?q=gui&start=20&sa=N&
pyglet-users | Google Groups
http://groups.google.com/group/pyglet-users/browse_thread/thread/6019b1884f7a4cdc/ee836aab14b55a2d?lnk=gst&q=gui#ee836aab14b55a2d
GUI - pyglet-users | Google Groups
http://groups.google.com/group/pyglet-users/browse_thread/thread/571b9b295042de13/e287d6d16cae5c2c?lnk=gst&q=gui#e287d6d16cae5c2c
pyglet experimental gui - pyglet-users | Google Groups
http://groups.google.com/group/pyglet-users/browse_thread/thread/698f1b7d327e278a/5a71374af2cf1549?lnk=gst&q=gui#5a71374af2cf1549
My simple GUI library for Pyglet - pyglet-users | Google Groups
http://groups.google.com/group/pyglet-users/browse_thread/thread/ed65dd0f78d6580/dfbee3bf3fc86353?lnk=gst&q=gui#dfbee3bf3fc86353
Using Pyglet in a rich GUI - pyglet-users | Google Groups
http://groups.google.com/group/pyglet-users/browse_thread/thread/9ef5daa879fabe51/d29a88ff72509f5c?lnk=gst&q=gui#d29a88ff72509f5c
controling a pyglet window from a gui program - pyglet-users | Google Groups
http://groups.google.com/group/pyglet-users/browse_thread/thread/8251625af4a9db0f/fdd3a742ed6e88e7?lnk=gst&q=gui#fdd3a742ed6e88e7
pyglet ui toolkit (maybe a mini-sprint here at pycon?) - pyglet-users | Google Groups
http://groups.google.com/group/pyglet-users/browse_thread/thread/4265d4e6cb18e341/f6c264c5d0523e5e?lnk=gst&q=gui#f6c264c5d0523e5e
normal python widgets and pyglet - pyglet-users | Google Groups
http://code.google.com/p/pyglet/source/browse/branches/holkner_1/DESIGN
DESIGN - pyglet - Google Code
http://codeflow.org/projects/deviceconf/
Deviceconf
http://www.pyglet.org/doc/api/pyglet.text.layout.IncrementalTextLayout-class.html#get_point_from_position
pyglet.text.layout.IncrementalTextLayout
http://groups.google.com/group/pyglet-users/web/simple-menu-class
Simple Menu Class - pyglet-users | Google Groups
http://groups.google.com/group/pyglet-users/web
Pages - pyglet-users | Google Groups

some issues with images in pyglet
if they are too big, they seem to cause problems... maybe bigger than display?

theory supported by:
http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=pyglet+images+bigger+than+window&btnG=Google+Search
pyglet images bigger than window - Google Search
http://groups.google.com/group/pyglet-users/browse_thread/thread/fca05d1f8feed7a1
direct drawing into a texture - pyglet-users | Google Groups

files for pyglet that handle vsync:

/c/virtuals/pyglet/pyglet-1.1.3/pyglet/window/carbon/__init__.py
/c/virtuals/pyglet/pyglet-1.1.3/pyglet/gl/agl.py
/c/virtuals/pyglet/pyglet-1.1.3/pyglet/window/__init__.py
/c/virtuals/pyglet/pyglet-1.1.3/pyglet/app/carbon.py

http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=opengl+vertical+retrace&btnG=Google+Search
opengl vertical retrace - Google Search
http://www.inb.uni-luebeck.de/~boehme/xvideo_sync.html
Synchronizing Xvideo to the vertical retrace
http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=opengl+vertical+refresh&btnG=Google+Search
opengl vertical refresh - Google Search
http://developer.apple.com/qa/qa2007/qa1521.html
Technical Q&A QA1521: Synchronizing OpenGL rendering updates to the vertical refresh of the display
http://www.lighthouse3d.com/opengl/glut/index.php?gameglut
OpenGL @ Lighthouse 3D - GLUT Tutorial
http://www.google.com/search?q=opengl+vblank&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
opengl vblank - Google Search
http://www.nvnews.net/vbulletin/showthread.php?t=95836
OpenGL sync to vblank and interlaced fields - nV News Forums
http://www.google.com/search?q=Temporal+Rate+Conversion+by+Dave+Marsh&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Temporal Rate Conversion by Dave Marsh - Google Search
http://www.microsoft.com/whdc/archive/TempRate.mspx
Temporal Rate Conversion: Dave Marsh. Microsoft Technical Evangelist, TV and Video
http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=wve&q=pyglet+swap+interval&btnG=Search
pyglet swap interval - Google Search
http://pyglet.googlecode.com/svn/trunk/doc/programming_guide/time.txt
http://pyglet.googlecode.com/svn/trunk/doc/programming_guide/time.txt
http://www.google.com/search?q=pyglet+set_vsync&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
pyglet set_vsync - Google Search
http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=h1z&q=opengl+agl&btnG=Search
opengl agl - Google Search
http://developer.apple.com/DOCUMENTATION/GraphicsImaging/Reference/AGL_OpenGL/Reference/reference.html
AGL Reference
http://developer.apple.com/DOCUMENTATION/GraphicsImaging/Reference/AGL_OpenGL/Reference/reference.html#//apple_ref/c/func/aglSetInteger
AGL Reference

By default pyglet window buffer swaps are synchronised to the display refresh
rate, so you may also want to disable `set_vsync`.

http://pyglet.googlecode.com/svn/trunk/doc/programming_guide/time.txt

http://localhost:5000/dir/media/code/python/topics
: topics
http://localhost:5000/journal/log/media/code/python/topics/pyglet.txt
: pyglet.txt
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/index.html
pyglet Documentation Index
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/index.html
Programming Guide
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/api/index.html
pyglet API reference
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/writing_a_pyglet_application.html
Writing a pyglet application
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/hello_world.html
Hello, World
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/calling_functions_periodically.html
Calling functions periodically
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/user_editable_text.html
User-editable text
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/controlling_playback.html
Controlling playback
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/playing_sounds_and_music.html
Playing sounds and music
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/api/pyglet.media.Source-class.html
pyglet.media.Source
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/api/pyglet.media.Player-class.html
pyglet.media.Player
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/api/pyglet.media.ManagedSoundPlayer-class.html
pyglet.media.ManagedSoundPlayer
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/image_viewer.html
Image viewer
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/animations.html
Animations
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/api/pyglet.sprite.Sprite-class.html
pyglet.sprite.Sprite
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/loading_resources.html
Loading resources
http://localhost:5000/charles/downloads/reference/pyglet/doc/html/programming_guide/graphics.html
Graphics

http://localhost:5000/journal/media/code/python/game/pyglet.txt?tstamp=20090414144201
: pyglet.txt
http://www.cocos2d.org/
cocos2d
http://code.google.com/p/cocos2d-iphone/
cocos2d-iphone - Google Code
http://www.cocos2d.org/doc.html
cocos2d
http://www.cocos2d.org/doc/faq/
cocos2d FAQ
http://los-cocos.googlecode.com/svn/branches/pycon-lighting-talk/
los-cocos - Revision 853: /branches/pycon-lighting-talk
http://www.cocos2d.org/games.html
cocos2d
http://www.cocos2d.org/download.html
cocos2d
http://code.google.com/p/cocos2d-iphone/wiki/GamesUsingCocos2d
GamesUsingCocos2d - cocos2d-iphone - Games using cocos2d for iPhone ordered chronologically (newer games first) - Google Code

spent a few hours last night running through the examples included with pyglet. very cool stuff!

/c/downloads/python/pyglet-1.1.3/examples
python media_player.py /media/CHARLES/outgoing/MVI_8486.AVI

that is a good first test to make sure AVBin is installed locally
(have added to media/system/startup-live.sh)

http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&hs=11E&q=opengl+redbook&btnG=Search
opengl redbook - Google Search
http://www.opengl.org/
OpenGL - The Industry Standard for High Performance Graphics
http://www.opengl.org/documentation/current_version/
What's New in the Latest Version of OpenGL
http://www.opengl.org/sdk/docs/man/
OpenGL 2.1 Reference Pages
http://www.opengl.org/documentation/blue_book/
The OpenGL Reference Manual - The Bluebook
http://www.opengl.org/documentation/red_book/
The OpenGL Programming Guide - The Redbook
http://www.google.com/search?q=blender+opengl&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
blender opengl - Google Search
http://glprogramming.com/red/
OpenGL Programming Guide : Table of Contents
http://glprogramming.com/red/chapter01.html
Chapter 1 - OpenGL Programming Guide
http://glprogramming.com/red/appendixi.html#plate1
Appendix J - OpenGL Programming Guide
http://groups.google.com/group/pyglet-users/web/nehe-lessons-1-10?pli=1
Nehe Lessons 1 10 - pyglet-users | Google Groups
http://www.google.com/search?q=NeHe%27s+OpenGL&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
NeHe's OpenGL - Google Search
http://nehe.gamedev.net/lesson.asp?index=01
NeHe Productions: OpenGL Lessons
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=01
NeHe Productions: OpenGL Lesson #01

pyglet.media.riff.RIFFFormatException: Unsupported RIFF form "AVI "

make sure avbin has been installed on the system

#2009.04.06 11:45:36 work@140-182-132-176:/c/virtuals/pyglet/pyglet-1.1.3/examples
pythonw image_display.py /c/media/projects/IMG_8116_l.JPG

http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=pyglet+virtualenv&btnG=Google+Search
pyglet virtualenv - Google Search
http://www.mail-archive.com/pyglet-users@googlegroups.com/msg02166.html
pyglet and virtualenv
http://www.mail-archive.com/pyglet-users@googlegroups.com/msg00921.html
Re: broken egg for pyglet
http://www.mechanicalcat.net/richard/log/Python/Bruce_the_Presentation_Tool_2_0__beta
Bruce the Presentation Tool 2.0 (beta)
http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&hs=sHq&q=Window+manager+is+not+available.++Ensure+you+run+%22pythonw%22%2C+not+%22python%22&btnG=Search
Window manager is not available. Ensure you run "pythonw", not "python" - Google Search
http://www.astro.cornell.edu/staff/loredo/samsi/osx-install.html
Python for Astrostatistics - Mac OS X Installation
http://www.google.com/search?q=virtualenv+pythonw&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
virtualenv pythonw - Google Search
http://github.com/gldnspud/virtualenv-pythonw-osx/tree/master
gldnspud's virtualenv-pythonw-osx at master - GitHub
http://groups.google.com/group/python-virtualenv/browse_thread/thread/83fa4a12d22a30c8/744e19c194f1618a
virtualenv on OS X with pythonw - virtualenv | Google Groups
http://groups.google.com/group/python-virtualenv/browse_thread/thread/b119a3c26aa49238/8eb2671a8dc7764f?pli=1
No pythonw on OSX? - virtualenv | Google Groups
http://markmail.org/message/hk5aipxiah7bl2hy
Search results for virtualenv pythonw - MarkMail

to:ianb@colorstudy.org?
I just ran across this issue when trying to use pyglet in a virtual environment on Mac OS X. The message from pyglet was:
pyglet.window.carbon.CarbonException: Window manager is not available. Ensure you run "pythonw", not "python"

which lead me to a more recent thread:
http://groups.google.com/group/python-virtualenv/browse_thread/thread/83fa4a12d22a30c8/744e19c194f1618a

which has a fix at:
http://github.com/gldnspud/virtualenv-pythonw-osx/tree/master

I haven't tried the fix yet, but I thought I might send it on to see if it is something that should be included with virtualenv. It's not so much about supporting older versions of python, just being able to use pythonw from a virtualenv.

-Charles

On May 16 2008, 3:12 pm, Ian Bicking wrote:
> dmp wrote:
>
> > On Wed, Apr 16, 2008 at 2:27 PM, Ian Bicking > > > wrote:
>
> > dmp wrote:
> > > Using virtualenv 1.0 I created a virtual environment, installed
> > an app
> > > that tries to open a GUI dialog, and keep getting the following
> > message:
>
> > > This program needs access to the screen. Please run with 'pythonw',
> > > not 'python', and only when you are logged in on the main display of
> > > your Mac.
>
> > > Is there a fix for this yet? I (naively) tried copying the pythonw
> > > executable to the virtualenv bin directory but that didn't work. A
> > > google search turned up only one useful hit -- from a couple
> > months ago
> > > where Robert Kern indicated he had a patch that would fix this. Is
> > > there a plan to get that into virtualenv at all?
>
> > I don't see that patch, do you know where it is?
>
> > I can't believe I didn't at least provide the link to the archived
> > message from Robert. Here it is:
> > http://www.mail-archive.com/distutils-...@python.org/msg04223.html
>
> > I'm not sure he ever finished / submitted it. I can ask him tomorrow
> > about it though.
>
> Was there a followup for this? The email describes a fairly complicated
> solution, so I'm not sure what to do about it. Supporting older
> versions of Python isn't a huge concern in every situation, I think,
> because the idea of virtualenv is isolation so that everything doesn't
> have to be run on the same set of libraries or Python version. So if
> things work okay on Python 2.4 that would be good enough for me. A
> warning for users would be nice, but I'm not really sure what's going on
> here.
>
> --
> Ian Bicking : i...@colorstudy.com :http://blog.ianbicking.org

avbin is used by default in pyglet
some discussion about the use of gstreamer in pyglet
http://code.google.com/p/pyglet/wiki/MediaOnLinux
http://www.mechanicalcat.net/richard/log/Python/Say_hello_to_pyglet

gstreamer interface reported to be complex.

downloaded source, docs and avbin to USB
attempting install for linux

/media/CHARLES/downloads/python/avbin-linux-x86-32-7
sudo bash install.sh

/media/CHARLES/downloads/python/pyglet-1.1.3
sudo python setup.py install

bruce uses pyglet to display slides via open gl... this works full screen