Archived
  1. Python Keep Window Open
  2. Pygame Title Screen
  3. Pygame Window Closing Automatically Download

Jan 04, 2009  Re: PyGame Windows Opens and Then Immediately Closes Yes, upload more code. Make sure you have an application loop of some kind; otherwise it certainly will just open the window. Feb 01, 2010  Closing the window We want our window to persist until the user chooses to closes it. To achieve this, we monitor user inputs (known as 'events') using pygame.event.get. This function returns a list of events which we can loop through and check to see whether any have the type QUIT.

Mar 25, 2013  How to enable Python 3 pip on Windows 10 - Duration: 4:19. Artur Spirin 164,601 views. Pygame window opens then closes immediately As part of my internship this summer I have to use a python/pygame script written by the previous intern. After much trouble, I have finally gotten pygame installed and 'working' (i.e. It at least imports without error) and figured out how to run the script from Terminal, using the correct command. Mar 31, 2018  2 Answers. Pygame.display.quit Uninitialize the display module quit - None This will shut down the entire display module. This means any active displays will be closed. This will also be handled automatically when the program exits.

Pygame quit

As part of my internship this summer I have to use a python/pygame script written by the previous intern. After much trouble, I have finally gotten pygame installed and 'working' (i.e. it at least imports without error) and figured out how to run the script from Terminal, using the correct command line arguments, and so on.

But when I run the script, the pygame window opens for a split-second before crashing.

If it matters I'm using OS X, Python 2.7.11 32bit, and the corresponding version of pygame.

I doubt this is a problem with the code because I know the previous intern has run it successfully in the past, and I didn't change it at all, and the game is very basic so I highly doubt it's crashing because my system can't handle it.

I know I have the correct version of pygame installed, and I just did the basic install of the download from pygame.org so I don't see how I could have fucked that up, but who knows. Originally, I had 64bit Python 2 installed so I tried using Python3 and installing pygame using homebrew and a bunch of other command line nonsense I barely understood so that I wouldn't have to uninstall 64bit Python 2, but that ended up not working so I settled on replacing 64bit Python 2 with the 32bit version and then installing the corresponding version of pygame. I tried uninstalling the other stuff after, but I honestly don't even know how to fully uninstall 'normal' programs on OS X (why the hell is there not just an 'Uninstall Application' tool like there is on Windows?) nevermind shit installed through command line that is almost impossible to even find on my machine, so there could be something still there that's fucking pygame up.

I also get two warnings in Terminal when I run the script about how I'm using the 'deprecated Carbon Component Manager for hosting Audio Units' and 'NSQuickDrawView, which has been deprecated' and saying I should instead use the 'API's in AudioComponent.h' and 'Quartz', respectively. I have no idea what any of those things are, but they could easily be the problem as well.

Closing
comment
Archived

Python Keep Window Open

As part of my internship this summer I have to use a python/pygame script written by the previous intern. After much trouble, I have finally gotten pygame installed and 'working' (i.e. it at least imports without error) and figured out how to run the script from Terminal, using the correct command line arguments, and so on.

Full hd 1080p video download. But when I run the script, the pygame window opens for a split-second before crashing.

If it matters I'm using OS X, Python 2.7.11 32bit, and the corresponding version of pygame.

I doubt this is a problem with the code because I know the previous intern has run it successfully in the past, and I didn't change it at all, and the game is very basic so I highly doubt it's crashing because my system can't handle it.

Pygame Title Screen

I know I have the correct version of pygame installed, and I just did the basic install of the download from pygame.org so I don't see how I could have fucked that up, but who knows. Originally, I had 64bit Python 2 installed so I tried using Python3 and installing pygame using homebrew and a bunch of other command line nonsense I barely understood so that I wouldn't have to uninstall 64bit Python 2, but that ended up not working so I settled on replacing 64bit Python 2 with the 32bit version and then installing the corresponding version of pygame. I tried uninstalling the other stuff after, but I honestly don't even know how to fully uninstall 'normal' programs on OS X (why the hell is there not just an 'Uninstall Application' tool like there is on Windows?) nevermind shit installed through command line that is almost impossible to even find on my machine, so there could be something still there that's fucking pygame up.

I also get two warnings in Terminal when I run the script about how I'm using the 'deprecated Carbon Component Manager for hosting Audio Units' and 'NSQuickDrawView, which has been deprecated' and saying I should instead use the 'API's in AudioComponent.h' and 'Quartz', respectively. I have no idea what any of those things are, but they could easily be the problem as well.

Edit: Installed Ubuntu on a virtual machine and was able to get this all up and running in ~1 minute. I'm sure if I really wanted to I could get it working on OS X, but I've been wanting to dual boot anyways so I'm just going to do my PyGame stuff on Linux for now.

Pygame Window Closing Automatically Download

1 comment