On 01/11/13 18:34, John Ladasky wrote:
> [...]
> My question was how simply changing the Sprite coordinate values was
> triggering a redraw, if I do not explicitly call on_draw().  One
> possible way is that a Pyglet app could keep track of the previous
> coordinates of any instantiated Sprites.  It's great that it is
> accomplished automatically, if indeed it is.  I just want to know how.
>  Other GUI's that I have used do not do this.

OK, I misunderstood your question :(

The EventLook will dispatch a "on_draw" event when the window should be
redrawn.

> [...]
> It was in my first post:

Sorry, I'm not being too useful.

>[...]
> 
> I just checked the ESC key option.  It too does not work, once the
> program is frozen.

So the even loop is not working.

I can't reproduce the problem here.

The only thing that I can see is that you're not assigning MyWindow()
object and I wonder if the garbage collector is doing something
unexpected in Python 3.3.2. Can you assign MyWindow() to a variable?

When a window is created it's added to pyglet.app.windows, but it uses a
weak reference that doesn't prevent the window to be garbage collected.

It's a wild guess, I know, but... can you try it?

Regards,

Juan

-- 
jjm's home: http://www.usebox.net/jjm/
blackshell: http://blackshell.usebox.net/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to