As an aside, while I was trying to help Paul with this privately: The command

python test.py > errors.log 2>&1

Did produce the right traceback I believe.


HTH,


On 16/07/2018 16:25, Paul Iyobo wrote:
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
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 [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.

Reply via email to