[Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

Bill Janssen janssen at parc.com
Wed Feb 4 18:50:48 CET 2009


Ronald Oussoren <ronaldoussoren at mac.com> wrote:

> LSUIElement=1 completely surpresses the dock icon and menu bar for an
> application, although you can get those back by calling an API. This
> would be a support nightmare for python.app, any (OSX) newby that runs
> a Tkinter script from a tutorial ends up with a non-functional
> application.

Whether we need to also upgrade the tutorials strikes me as a minor
matter.

> Furthermore cross-platform scripts would have to call
> the "upgrade-API" to ensure they have a menu, making OSX different
> from Linux and Windows.

No, as you then point out...

> Both could be worked around by including a call to the "upgrade-API"
> in the startup code for GUI toolkits (Tkinter, WxWidget, QT, ...), but
> that would mean you can no longer create agent applications using
> those toolkits.

Yeah, we'd want to a call in the toolkit to make to enable that, which
modifies the level that the automatic upgrade upgrades to.

> An agent application is supposed to be a mostly
> faceless background application that can pop-up a window when it needs
> to. I guess Growl would be a good example of such functionality,
> although I haven't checked if they use the LSUIElement key.

Bill


More information about the Pythonmac-SIG mailing list