Re: [Tutor] Why use decorators ?

2009-05-02 Thread Lie Ryan
sudhanshu gautam wrote: 1.import pyglet window=pyglet.window.Window() lable=pyglet.text.Lable('Hello, world', font_name='Times New Roman', font_size=36, x=window.width//2, y=window.height//2, anchor_x='center', anchor_y='center') *...@window.event * def on_draw(): window.clear() lab

Re: [Tutor] Why use decorators ?

2009-05-02 Thread Kent Johnson
On Sat, May 2, 2009 at 1:41 AM, sudhanshu gautam wrote: > Last night was using a pyglet for creating some good graphical applications > ,it was my first introduction with the pyglet,so just went on pyglet.org and > downloaded a pdf file . > > Now simply made two programs that is mentioned in the p