python - Problems with pygame -


So I've recently installed the Pygmem extension for Python, but I'm having some difficulty working on this. I'm using Python version 2.7.8, and I've tried to get the version 2.7 32 bit, from the Episode. I also tried to download pygame.org site and pygame-1.9.2a0.win32-py2.7.msi. I used a code that got online to test me out of PG, but when I try to run the program, whatever comes up is a black window with the pagim icon at the top. If I try and crash anywhere with a click or a program with a "Program Not Responding" window. Can anyone tell me what is wrong or can I try?

I tried to run the code and telling me the error message:

  typeError: super () takes at least 1 argument (0 given)  

So my conclusion is that the guy in the video is using Python3.x because because I () I do not mistakenly think 3.x does not require any logic

I do not know that you have received this error message but you can at least try my solution There are logic requirements in Python 2.7.8 (super), so you need to modify the code like this:

  Super (player, Self) .__ init (__) # For example, line 48 which you have attached to super (wall, self) .__ init (__) # example line example 97  

my Another thing is that when it is to work with GUI libraries such as Pigam, it is that Python GUI can interfere with the Pagim Code Because Pygm also tries to create a GUI. You can run the program to avoid this, for example instead of CMD.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -