[python-win32] Using Tix with Python 2.3.3 (win32)
Christopher Martin
bluedust at swbell.net
Mon Sep 20 17:36:53 CEST 2004
I cannot get Tix to work with Python 2.3.3 under
windows. Tkinter works fine (and with more complicated
scripts, too).
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> import Tkinter
>>> root = Tkinter.Tk()
>>>
Here is the output of an attempted Tix session:
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> import Tix
>>> root = Tix.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Python23\lib\lib-tk\Tix.py", line 210, in
_init__
self.tk.eval('package require Tix')
_tkinter.TclError: couldn't load library
"c:/python23/DLLs/tix8183.dll": this library or a
dependent library could not be found in library path
>>>
I have tried installing it both by building by source
and by the binaries from IDEStudio:
http://starship.python.net/crew/mike/src/idledev/IDEStudio.html
I've tried a number of different
C:\python23\tcl\tix8.1\pkgIndex.tcl files, including
the one recommended in the python docs:
package ifneeded Tix 8.1 [list load "[file join $dir
tix8183.dll]" Tix]
and another I found in a net search:
package ifneeded Tix 8.1 \
[list load [file join [file dirname [info
nameofexe]] DLLs tix8183.dll] Tix]
package ifneeded wm_default 1.0 [list source [file
join $dir pref WmDefault.tcl]]
The tix8183.dll does exist in both the DLLs directory
and the tcl/tix8.1 directory.
What do I need to do to make this work? Is there an
environmental variable I need to setup somehow? Is
there additional information I can provide?
Thanks,
Chris
More information about the Python-win32
mailing list