So, I was playing around with dialogs, and since I didn't want to use inner classes, I tried setting the ok_button of an OkDialog with the set_ok_button method, but it crashed with a pyglet.event.EventException: Unknown event "on_click_ok"
The following code should work (since it's replacing the ok button with itself), and yet it raises the same exception:
So, I was playing around with dialogs, and since I didn't want to use inner classes, I tried setting the ok_button of an OkDialog with the set_ok_button method, but it crashed with a
pyglet.event.EventException: Unknown event "on_click_ok"
The following code should work (since it's replacing the ok button with itself), and yet it raises the same exception: