[Pythonmac-SIG] Python program done, now need to Change Rocketship Icon, Remove Python menu?

2009-06-29 Thread Python Nutter
I've completed a GUI program in Python and used wxPython for a cross
platform GUI solution.

Now I need to focus on polishing up the Mac OS X distribution side of things.

I've scanned my email program's archives of pythonmac-sig and I didn't
get any results on a few first items I need to learn.

The Mac Python Framework launches GUI based applications using Python
Launcher, which gives a Rocketship icon on the Dock and inserts a
Python menu on the Mac menubar.

1. I wish to override the Rocketship icon and display an icon
representing my Application.

2. I wish to override/remove the Python menu item on the toolbar so
that only my wxPython menus appear on the Mac toolbar when my program
has focus.

3. I don't suppose there is an easy way to make an application folder
in the Mac OS X Application folder representing my python program with
the same Icon that would appear on the Dock when the user launches my
program? I don't see any easy references to the folder structure for
Python programmers to deploy on the OS X platform. Is there any good
resources out there that will teach how to do this?

I noticed that there is a Build Applet program on the Mac, and it
prompts to select Source or Python file. However all the .py files are
grayed out when I browse any directory on my USB Drive. I had small
hopes it would help build the folder structure mentioned in Item#3 so
I could then learn how to build a DMG file that will let a user drag
the Icon/folder representing my program into the Applications folder
to install it.

What are some good resources to learn how to deploy on this platform?

Cheers,
PN
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Python program done, now need to Change Rocketship Icon, Remove Python menu?

2009-06-29 Thread Kevin Walzer

Python Nutter wrote:



What are some good resources to learn how to deploy on this platform?



py2app is what you're looking for--it will wrap Python and your 
application code into a standalone application with its own icon.


--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Python program done, now need to Change Rocketship Icon, Remove Python menu?

2009-06-29 Thread Bill Janssen
Python Nutter pythonnut...@gmail.com wrote:

 1. I wish to override the Rocketship icon and display an icon
 representing my Application.

Put your icon in the Info.plist file of your application:

keyCFBundleIconFile/key
stringYourLogo.icns/string

You can use /Developer/Applications/Utilities/Icon Composer to build
the icons file.

 3. I don't suppose there is an easy way to make an application folder
 in the Mac OS X Application folder representing my python program with
 the same Icon that would appear on the Dock when the user launches my
 program? I don't see any easy references to the folder structure for
 Python programmers to deploy on the OS X platform. Is there any good
 resources out there that will teach how to do this?

Again, just set the icon bundle in the Info.plist.

There are lots of different ways to do this.  Kevin's advice to just use
py2app may be a good idea.

Bill
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig