examples only run from CLI
The gui, helloworld, and particles examples will not run unless run from the command line. (Actually I still get an error about SDL can't load but that's a diff issue.). (I'm using Windows)
But their internal syntax makes them not possible to run from IDLE (say). I think this is a mistake.
E.g. gui.py when executed in IDLE reports: Traceback (most recent call last): File "C:\Python27\Lib\site-packages\sdl2\examples\gui.py", line 26, in <module> RESOURCES = sdl2ext.Resources(file, "resources") NameError: name 'file' is not defined
This is because the Python Shell doesn't detect current file path in file and it's related to the filepath in the line.
Perhaps use os module to get the cwd ? I really don't know what its supposed to be doing... If its just loading a file....