Jul-15-2018, 08:13 AM
Hi there. While I was trying to use pyglet on windows, I tried making a test screen that would raise a runtime error as soon as I was going to press the key R. Code looks like this
I had issues like this with other projects, where if I had an error at runtime for example from an imported file, nothing would happen and the eventloop would run nomatter what.
Is this me being wrong, or is this an issue?
Thanks in advance.
from pyglet import app from pyglet.window import Window, key win = Window(caption='test application') @win.event def on_key_press(symbol, modifiers): if symbol == key.R: raise RuntimeError("this is a test") app.run()though, when I execute it, the window pops up, but if I press r, nothing happens.
I had issues like this with other projects, where if I had an error at runtime for example from an imported file, nothing would happen and the eventloop would run nomatter what.
Is this me being wrong, or is this an issue?
Thanks in advance.