Python Forum

Full Version: What is $DISPLAY supposed to be?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have tkinter installed on OSX10.4 PowerPC, and it imports ok to Python3.3.
It needs the $DISPLAY environment variable set to work, otherwise I get a tcl error.
I know how to set it, but not what to set it to.
How do I find that out?
Thanks in advance :)
$DISPLAY is an X window system notion. On my linux box, echo $DISPLAY prints :0. I often saw the value localhost:0.0 in the docs for this variable. According to this site, the value is hostname:D.S where D is a sequence number (if there are several displays) and S is a screen number.
Aha, that means X11 has to be installed and running - darn, I no longer have the install disks. Garage sale time I guess.
Thanks.