about environment variable.

rambo rambo at linuxsecurity.co.kr
Thu Mar 8 18:08:46 EST 2001


I installed Tkinter ,as follows
rpm -Uvh Tkinter-2.0-8.0-3.i386.rpm

after that,
   == python prompt ===
1. >>>from Tkinter import *
2. >>> w=Button (text="hello" , command='exit' )
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.0/lib-tk/Tkinter.py", line 1819, in __init__
    Widget.__init__(self, master, 'button', cnf, kw)
  File "/usr/local/lib/python2.0/lib-tk/Tkinter.py", line 1752, in __init__
    BaseWidget._setup(self, master, cnf)
  File "/usr/local/lib/python2.0/lib-tk/Tkinter.py", line 1727, in _setup
    _default_root = Tk()
  File "/usr/local/lib/python2.0/lib-tk/Tkinter.py", line 1482, in __init__
    self.tk = _tkinter.create(screenName, baseName, className)

after type 2th line , I got error message as above,
what environment variable  should I set  to fix above problem.

thanks for your time.








More information about the Python-list mailing list