Les raccourcis clavier de Groupes ont été mis à jour
Ignorer
Voir les raccourcis

Mac's program name

9 vues
Accéder directement au premier message non lu

Steven Sproat

non lue,
31 janv. 2010, 13:53:0031/01/2010
à wxpytho...@googlegroups.com
Hi all,

See: Attached screenshot. In the top-left, you can see the application's
name appears as Python. Is there a way to change this?
I've used

self.SetAppName("whyteboard")

in my App instance - would I need to set the vendor name too? or, is
this something that only changes when the application's installed?
Thanks, I just have no Mac access to give my program a whirl.

Cheers,
Steven

whyteboard.jpg

Frank Niessink

non lue,
31 janv. 2010, 13:59:3331/01/2010
à wxpytho...@googlegroups.com
2010/1/31 Steven Sproat <spr...@gmail.com>:

FYI: When I run Task Coach from source on the Mac it also shows Python
in the upper left corner. However, the py2app'ed application bundle
correctly shows "Task Coach" in the menu.

Cheers, Frank

Nathaniel Echols

non lue,
31 janv. 2010, 14:04:1831/01/2010
à wxpytho...@googlegroups.com
There is a very gross hack to do this if you bundle a standalone Python.app: edit Python.app/Contents/Info.plist and change the string associated with CFBundleName to the name of your app.  This will change the menubar name - however, the icon in the Dock will still be Python.  (I don't think there's any way to change this without modifying the Python source code.) 

Steven Sproat

non lue,
31 janv. 2010, 14:12:0831/01/2010
à wxpytho...@googlegroups.com
Nathaniel Echols wrote:
>
> There is a very gross hack to do this if you bundle a standalone
> Python.app: edit Python.app/Contents/Info.plist and change the string
> associated with CFBundleName to the name of your app. This will
> change the menubar name - however, the icon in the Dock will still be
> Python. (I don't think there's any way to change this without
> modifying the Python source code.)
>
> <http://groups.google.com/group/wxPython-users?hl=en>


Frank Niessink wrote:
> FYI: When I run Task Coach from source on the Mac it also shows Python
> in the upper left corner. However, the py2app'ed application bundle
> correctly shows "Task Coach" in the menu.
>
> Cheers, Frank
>
>

Ah, okay. With no Mac access I can't create a bundle, so it's no
problem. Thanks, both. It's a minor issue that doesn't bother me too
much. I really need to get a Mac VM working!

Thanks.

Christopher Barker

non lue,
1 févr. 2010, 12:41:0301/02/2010
à wxpytho...@googlegroups.com
Nathaniel Echols wrote:
> On Sun, Jan 31, 2010 at 10:53 AM, Steven Sproat <spr...@gmail.com
> See: Attached screenshot. In the top-left, you can see the application's
> name appears as Python. Is there a way to change this?

> There is a very gross hack to do this if you bundle a standalone

> Python.app: edit Python.app/Contents/Info.plist and change the string
> associated with CFBundleName to the name of your app. This will change
> the menubar name - however, the icon in the Dock will still be Python.
> (I don't think there's any way to change this without modifying the
> Python source code.)

sure there is -- much the same way -- but that would change it for every
python app, which you probably don't want.

The "right" way to do it is to create an application bundle. If you have
Mac users, maybe one of them can do it for you. Some perusing and/or a
post to the python-mac list should let you know what needs to be done

And take a look at: http://wiki.wxpython.org/Optimizing%20for%20Mac%20OS%20X

in any case, wxPython is imperfect enough that you'll need someone to at
least test and debug a bit on OS-X anyway.

If you want your users to be able to run in-development source, they can
build and "alias" app -- it contains links to the source, so that when
you update the source, it runs the updated code, but it otherwise
behaves like a real app -- with the right icons, drag and drop, etc.
That's how I run the Peppy editor, for instance, it works great.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris....@noaa.gov

Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message