Looks it's just a simple spelling mistake. Should be schedule not shedule

On Sun, Aug 26, 2018, 2:21 PM Даниїл Потока <potoka1...@gmail.com> wrote:

> Hello,
> I've started studying pyglet and have a problem with a clock module. Code
> must create a window and draw a sine wave. Unfortunately I get this
> traceback:
>
> *Traceback (most recent call last):*
> *  File "C:/untitled/Try_opengl.py", line 23, in <module>*
> *    pyglet.clock.shedule_interval(update,1/60)*
> *AttributeError: module 'pyglet.clock' has no attribute
> 'shedule_interval' *
>
> there is a code:
>
> import numpy as np
> import pyglet
>
> window = pyglet.window.Window()
>
> x=200
> y=200
>
> def update(dt):
>     global x,y
>     x=x+1
>     y=np.sin(x)
>
> @window.event
> def on_draw():
>     window.clear()
>     pyglet.graphics.draw(1, pyglet.gl.GL_POINTS,
>                          ('v2f', (x,y))
>                          )
>
> pyglet.clock.shedule_interval(update,1/60)
> pyglet.app.run()
>
>
>
> --
> 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 pyglet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to pyglet-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/pyglet-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to