Python Forum
[Tkinter] What is $DISPLAY supposed to be?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] What is $DISPLAY supposed to be?
#1
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 :)
Reply
#2
$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.
Reply
#3
Aha, that means X11 has to be installed and running - darn, I no longer have the install disks. Garage sale time I guess.
Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Display and update the label text which display the serial value jenkins43 5 8,995 Feb-04-2019, 04:36 AM
Last Post: Larz60+
  Display more than one button in GUI to display MPU6000 Sensor readings barry76 4 3,836 Jan-05-2019, 01:48 PM
Last Post: wuf
  First Gui attempt and file not working like it is supposed to. Tuck12173 2 6,400 Jan-28-2018, 04:33 AM
Last Post: Tuck12173
  Is self supposed to be here or not? iFunKtion 3 3,946 Feb-07-2017, 02:12 PM
Last Post: iFunKtion

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020