You're right, I forgot I've installed trunk.
Using pyglet 1.1.3 it works ok for mouse and keyboard control. By the
way, this means that something's broken with trunk, did you test using
trunk to confirm ?
Apart from that, I got an error when trying to close the "settings"
folder:
Traceback (most recent call last):
File "demo.py", line 139, in <module>
pyglet.app.run()
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/app/
__init__.py", line 264, in run
EventLoop().run()
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/app/
carbon.py", line 84, in run
self._timer_proc(timer, None, False)
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/app/
carbon.py", line 133, in _timer_proc
sleep_time = self.idle()
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/app/
__init__.py", line 193, in idle
window.dispatch_event('on_draw')
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/window/
__init__.py", line 1217, in dispatch_event
EventDispatcher.dispatch_event(self, *args)
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/
event.py", line 340, in dispatch_event
if handler(*args):
File "demo.py", line 113, in on_draw
frame.draw()
File "/Volumes/Data/Local/src/simplui-1.0.4a/simplui/frame.py",
line 133, in draw
self.batch.draw()
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/
graphics/__init__.py", line 538, in draw
func()
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/
graphics/__init__.py", line 470, in <lambda>
(lambda d, m: lambda: d.draw(m))(domain, mode))
File "/Volumes/Data/Local/lib/python2.6/site-packages/pyglet/
graphics/vertexdomain.py", line 690, in draw
primcount)
ctypes.ArgumentError: argument 4: <type 'exceptions.TypeError'>:
expected LP_c_void_p instance instead of c_ulong_Array_2
Nicolas
On 17 Aug, 2009, at 12:38 , Tristam MacDonald wrote:
> On Mon, Aug 17, 2009 at 4:05 AM, Nicolas Rougier <[email protected]
> > wrote:
>
> I tested demo.py and while the display is correct (fps label is
> updated), I cannot interact with the windows. Mouse clicks have no
> effect and keyboard only produces False/True prints on the terminal.
> I tested it on Mac os.
>
> What exact system and pyglet are you running? In particular, are you
> running trunk? This is built against 1.1 maintenance.
>
> It works fine on my MacBook (Intel X3100), and on Doug Philips
> MacBook Pro (? NVidia 8600M).
>
> --
> Tristam MacDonald
> http://swiftcoder.wordpress.com/
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---