--> --> -->
 
 
<class '_tkinter.TclError'>
Python 2.6.6: /usr/bin/python
Fri Aug 7 19:25:56 2020

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/jerky/public_html/hello.py in ()
   10 import Tkinter
   11 
   12 parent_widget = Tkinter.Tk()
   13 label_widget = Tkinter.Label(parent_widget, text="A Label")
   14 label_widget.pack()
parent_widget undefined, Tkinter = <module 'Tkinter' from '/usr/lib64/python2.6/lib-tk/Tkinter.pyc'>, Tkinter.Tk = <class Tkinter.Tk>
 /usr/lib64/python2.6/lib-tk/Tkinter.py in __init__(self=None, screenName=None, baseName='hello', className='Tk', useTk=1, sync=0, use=None)
 1641                 baseName = baseName + ext
 1642         interactive = 0
 1643         self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
 1644         if useTk:
 1645             self._loadtk()
self = None, self.tk = None, global _tkinter = <module '_tkinter' from '/usr/lib64/python2.6/lib-dynload/_tkinter.so'>, _tkinter.create = <built-in function create>, screenName = None, baseName = 'hello', className = 'Tk', interactive = 0, global wantobjects = 1, useTk = 1, sync = 0, use = None

<class '_tkinter.TclError'>: no display name and no $DISPLAY environment variable
      args = ('no display name and no $DISPLAY environment variable',)
      message = 'no display name and no $DISPLAY environment variable'