[Pythonmac-SIG] Tkinter under Mac OSX
Jack Jansen
Jack.Jansen@oratrix.com
Wed, 13 Nov 2002 22:36:26 +0100
On woensdag, nov 13, 2002, at 19:11 Europe/Amsterdam, Michel Sanner
wrote:
> 1 - build without using -DTK_AQUA. The window appears but clicking on
> it or
> doing anything in the window prints an error message: failed to
> setFrontProcess
This message usually means that you're trying to execute your Tkinter
script with python in stead of pythonw. All windowing applications
*must* be run from a .app bundle otherwise they will not work. Pythonw
is a workaround that enables you to runwindowing scripts from the
commandline.
> 2 - build using TK_AQUA. For this to link I had to replace
> Tk_MacOSXOpenBundleResources by Tcl_MacOSXOpenBundleResources, but the
> code
> fails with a bus error on Tcl_MacOSXOpenBundleResources.
This sounds like it could also be related to not running from a .app
bundle, but I'm not sure.
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma
Goldman -