when I press R the error isn't raised like it should.
Il giorno lunedì 16 luglio 2018 17:25:20 UTC+2, Paul Iyobo ha scritto:
> Hi there.
> While I was using pyglet I faced this issue.
> When I was running the program, and an error would occur, the eventloop
> wouldn't raise the error.
> For confirming my suspect I tried making a window screen which would raise
> a runtimeerror as soon as the key R was pressed
> The code looks like this
> from pyglet import app
> from pyglet.window import Window, key
>
> win = Window(caption='test')
>
> @win.event
> def on_key_press(symbol, modifiers):
> if symbol == key.R:
> raise RuntimeError("this is a test")
>
> app.run()
>
> how can I fix it?
> Is my pyglet set up in a wrong way?
>
--
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 https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.