Starting Python script without explicitly having X11 open Starting Python script without explicitly having X11 open tkinter tkinter

Starting Python script without explicitly having X11 open


Install python2.5 or python2.6 for OS X from python.org. They use the native Aqua Tk and thus do not require X11 for IDLE or python scripts that use Tkinter.


If I had to guess (and I do...), it sounds like you installed an X11 based version of python and tkinter rather than one that uses the native windowing system on OSX. I think you can safely write your scripts without telling people they have to have X11 running. You merely have to say they have to have a proper environment set up -- either a native version of python+Tkinter or have X11 running and have an X11-based version of python+Tkinter

In other words, this isn't a regression in python that you have to code around, it's just a side effect of your particular installation of python.


I have installed Python 2.6.4 and I haven't any problem at all running it without a $DISPLAY variable ...

I'm on linux ...