remember that colors are (usually) specified as floating point numbers with values between 0 and 1.0
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
for sprites in pyglet, just calling .delete() works
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.
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
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
By default pyglet window buffer swaps are synchronised to the display refresh rate, so you may also want to disable set_vsync.
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)
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
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 <i...@colorstudy.com> wrote: > dmp wrote: > > > On Wed, Apr 16, 2008 at 2:27 PM, Ian Bicking <i...@colorstudy.com > > <mailto:i...@colorstudy.com>> 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