Tkinter Support

??? winson at mdsserv.mds.com.tw
Mon Mar 19 09:36:31 EST 2001


My code on Python is

from Tkinter import *
widget = Label(None, text='Hello GUI world!')
widget.pack()
widget.mainloop()

My message on Python is

"Traceback (most recent call last):
  File "c:\program files\python20\pythonwin\pywin\framework\scriptutils.py",
line 301, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\Program Files\Python20\Oreilly\1.Intro\GUI\GUI1.PY", line 1, in ?
    from Tkinter import *
  File "c:\program files\python20\lib\lib-tk\Tkinter.py", line 34, in ?
    import FixTk # Attempt to configure Tcl/Tk without requiring PATH
  File "c:\program files\python20\lib\lib-tk\FixTk.py", line 1, in ?
    import sys, os, _tkinter
ImportError: DLL load failed:"

So maybe it's not lost Tk, it lost Tkinter, too.

--
Best Regards,

Winson Chang

3F, 2, 150 Lane, Sec. 5, Hsin I Rd., Taipei, Taiwan, R.O.C.

Tel: +886-2-27225333 ext 376
Fax: +886-2-27222330

Email: winson at mdsserv.mds.com.tw
----- Original Message -----
From: "Paul Prescod" <paulp at ActiveState.com>
To: "±i¸Î¯q" <winson at mdsserv.mds.com.tw>; <python-list at python.org>
Sent: Monday, March 19, 2001 4:33 PM
Subject: Re: Tkinter Support


> ActivePython comes with TKinter but not Tk. You can use the package
> manager utility to install it (see the ActivePython start menu). Just
> type "install tk" from the PPM command line.
> --
> Take a recipe. Leave a recipe.
> Python Cookbook!  http://www.activestate.com/pythoncookbook
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>





More information about the Python-list mailing list