Hi,

for my psychophysical experiments I'd like to interface
a Wacom Tablet (incl. distance/rotation/tilt of the pen)
and be able to switch and query the current video mode of a CRT monitor
on Linux and OSX (preferably platform independent).

The builtin tablet support in SVN seems to be limited
to positions and pressure of the pen.
In http://pyglet.googlecode.com/svn/trunk/experimental/input/
I found some to code which is supposed to report more DOFs
of pens. I was able to get that code running by replacing
s/pyglet.window.xlib/pyglet.libs.x11/
s/pyglet.window.carbon/pyglet.libs.darwin.constants/
on both OSX (10.5.7) and Ubuntu 9.04.
However, the API on each OS seems to be quite different.
Are there any plans to merge those features into the main pyglet branch?

I need video mode (resolution + refresh rate) switching as
manually changing is not an option especially during debugging,
but also for checking whether the correct video mode is actually set.
I agree with
http://groups.google.com/group/pyglet-users/web/issues-with-full-screen-resolution
that video mode handling could be done independently from pyglet
(builtin support would be more convenient though)
and I found some code in
http://pyglet.googlecode.com/svn/trunk/experimental/modeswitch/
However, the X11 code fails with
Traceback (most recent call last):
  File "xrandr.py", line 43, in <module>
    x_screen = xlib.XScreenOfDisplay(_display, screen._x_screen_id)
AttributeError: 'XlibScreen' object has no attribute '_x_screen_id'
I also don't understand the patch for OSX.
Has anyone got working Python code for querying all and the current mode
and switching modes?

Thanks for your help!
-- 
Thomas Tanner ----------------
email: [email protected]
GnuPG key id: 1024/5924D4DD
Max Planck Institute for Biological Cybernetics
Spemannstrasse 38
72076 Tübingen, Germany



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to