---------- Forwarded message ---------- From: Mark Erbaugh <[email protected]> Date: Tue, May 10, 2011 at 9:00 AM Subject: Webpy Python Applet on Mac To: Ken <[email protected]>
This is on a Mac running OSX 10.6 (Snow Leopard) I've used py2app to convert my webpy server using the default Cherry.py server into an applet that I can launch from my applications folder. I have two questions: 1) Is there a way to shut the built-in server down in response to the user clicking on a served up link? Right now, I'm using the "Force Quit" option to shut the server down when I'm done with it. 2) For those familiar with the way a Mac app launches with the bouncing icon in the dock, this app takes a long time to stop bouncing (I counted 84 bounces) and when it does stop bouncing there's no little light under it to indicate the app is running. Also, the Finder thinks the app is not responding. But the server is running and it responds properly to my web browser. I'm guessing the problem is that the applet needs to do something to let the finder know it is responding (or there needs to be some setting to tell the finder that it doesn't respond). FWIW, the reason I'm trying to run the app this way is that for one weekend out of the year, this app is run as a full blown web app on a server with several machines on a local area network accessing it. The rest of the year, I run the same app, but I'm the only user. It's just easier to launch the web server when I need to use the app and use a browser rather than trying to create a full blown desktop version of the app. In the past, I've just run the app by launching the .py file inside a Terminal window, but I thought an applet would be cleaner. Any ideas? Thanks, Mark -- http://twitter.com/qichangxing python-cn(news, jobs) http://simple-is-better.com 办公室创意生活 http://office.simple-is-better.com/ -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
