-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app starts minimized #140
Comments
Original comment by stefan karos (Bitbucket: bwanaaa, GitHub: bwanaaa). well i found some VERY BIZARRE.
the setup script named 'setuptest.py' is this:
then i run this in terminal:
and i get an app named 'test' in my folder named 'dist'. double clicking on this app gives a black window with a green word in it that says 'Label1'. If I change the name of my script from test.py to pongforone.py then i get an app named pongforone that starts minimized. I have to go down to the launch bar and click on the little smiling python to bring it to the front. renaming the app in finder to 'test' or anything else does not change this behavior. it still starts in the background. Is there something freaky about my Mavericks OS or can anyone reproduce this behavior? |
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). This is pretty weird, I'll try to reproduce the problem. As an aside, |
Original comment by Statue11 (Bitbucket: Statue11, ). I have the same problem - py2app. My app has no console output, but uses Tkinter to throw up a GUI screen. When I run the app, the icon appears in the dock, but the TK window is not visible unless I click on the icon to un-minimize it. I'm running the latest version of py2app as of today. |
Original comment by Ryan Holmes (Bitbucket: blitzmann, GitHub: blitzmann). We ran into a similar issue: pyfa-org/Pyfa#423 Basically, we had to set |
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). Hmmm.... argv_emulation is more or less useless with any script that uses a GUI library, those should have their own mechanisms. Py2applet is only useful for command-line scripts that expect one or more filenames as their argument. I've changed py2applet to no longer enable argv_emulation by default, argv_emulation causes more problems than it solves when it is enabled by default. |
Original comment by Paul McCarthy (Bitbucket: pauldmccarthy, GitHub: pauldmccarthy). After some experimenting, I've been able to use argv emulation, and have the app start up normally (i.e. without getting minimised) by editing argv_emulation.py. Changing this line to:
fixes the issue without any undesirable side-effects (although have only tested on El Capitan). |
Original comment by Matthew Clapp (Bitbucket: itsayellow, GitHub: itsayellow). It would be nice if this issue could be fixed, because argv_emulation is how to open an app by double-clicking on it a document in Finder that belongs to the app. (if a proper plist is attached to the app). I am faced with the choice of my app either starting up minimized (with argv_emulation) or not loading the file I double-clicked on in Finder (without argv_emulation.) Is there another way for my app to receive which file was double-clicked on in Finder and started it up, besides receiving it in argv? |
Original comment by Matthew Clapp (Bitbucket: itsayellow, GitHub: itsayellow). I can confirm Paul McCarthy's fix also works for me in Mac OS Sierra. |
Original report by stefan karos (Bitbucket: bwanaaa, GitHub: bwanaaa).
I have successfully created a mac app of my python script which is the game, pong. The game runs fine but for some reason its pygame window starts minimized. I have to go down to the app launch at and click on the little smiling python to bring it up. The script itself executes properly in IDLE. Why is this and how to fix?
The text was updated successfully, but these errors were encountered: