Tkinter OSX and "lift"

Miki miki.tebeka at gmail.com
Thu Feb 21 17:54:21 EST 2008


Hello Kevin,

> "Lift" (which calls the Tk command "raise") doesn't work this way, at
> least not under Aqua. If your application has focus, "lift" will raise
> the widget being called to the top of the stacking order. However, it
> will not make the application frontmost. To do this you'd have to use
> Carbon calls (look at Carbon.CarbonEvt) or use a Tk extension and call
> it from Python. Of course, this is pretty much a non-issue if your
> application is wrapped as a standard Mac application bundle via
> py2app--most Mac users don't run Python apps from the Terminal but
> instead double-click an application icon. In that event, "lift" should
> work fine, because the application will already have focus.

Thanks,
--
Miki <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com




More information about the Python-list mailing list