Thanks again for the feedback Martin. I tend to favour the decorator
syntax, but I can see your point. The problem is that I'm not sure how
to format it and not use up a bunch more space by duplicating the
handler function - at the moment the ordering makes sense. Then again
with the current presentation it might look to some that you need to
both decorate *and* push...


     Richard

On Sat, Jul 10, 2010 at 11:21 PM, Martin O'Leary <[email protected]> wrote:
> I'd still be inclined to give push_handlers as the primary way of
> doing things, and describe the decorator syntax as the "alternative".
> 90% of problems I see with first-timers on Pyglet come from misuse of
> the decorator approach to event handling.
>
> Martin
>
> On 9 July 2010 04:55, Richard Jones <[email protected]> wrote:
>> On Thu, Jul 8, 2010 at 8:13 PM, Martin O'Leary <[email protected]> 
>> wrote:
>>> One little comment though, on the pyglet side, you mention the
>>> @window.event style of attaching event handlers, but not the
>>> window.push_handlers style.
>>
>> Good point. I've added a bit on that.
>>
>>
>>     Richard
>>
>> --
>> 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.
>>
>>
>
> --
> 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.
>
>

-- 
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