Hi Jose, I'm very new to Pyglet as well so I don't know if I can help. Could you clarify your question a bit? I'm not entirely sure what exactly you want. You said you don't know "how to assign the return of the function to a variable", but which function do you mean? As far as I know the on_mouse_press() function or method doesn't return anything (because it's an event handler). Also, you said you "want to call this function at a certain point". I assume you mean the function on_mouse_press()? Why would you want to do that? And what's stopping you from doing that? (I mean, just call it like you would any other method, it works for me with the on_mouse_motion() event handler.) Are you sure you don't just want to manually send the on_mouse_motion event?
The on_mouse_press() event handler is directly a method that only listens to the mouse. What other thing exactly are you looking for? Sorry I couldn't be of any help. Hopefully I'll be more useful once your questions are clearer to me. -- 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/d/optout.
