Python & pySDL2

Started by
2 comments, last by mousetail 9 years, 8 months ago

Hi

I have been trying to learn python for quite some time, with little success. So i have decided to create a project and learn on the way.

Im hoping to use pySDL2 as pygame is kind of outdated. I was able to install pySDL2 without problems. The only problem I am having now is understanding the second line of the pySDL2 tutorial. http://pysdl2.readthedocs.org/en/rel_0_9_3/tutorial/helloworld.html


RESOURCES = sdl2.ext.Resources(__file__, "resources")

I realise this line creates a resource folder but due to my inexperience I am not able to fix this problem. i was hoping someone here has experience and would be able to explain so I can move on with the rest of the tutorial.

Thanks so much

Dan

Advertisement

I think I may have found the solution to my problem. It maybe that the application is looking for a folder named "Resource" and that maybe the causing of the error. In any case here is the resource documentation - http://pysdl2.readthedocs.org/en/latest/modules/sdl2ext_resources.html

Dan

My hunch was correct! Now that I have completed the tutorial I get on with learning python!

python is a great language, good luck learning it.

My CVMy money management app: ELFSHMy game about shooting triangles: Lazer of Death

This topic is closed to new replies.

Advertisement