2009/7/26 Harm Kirchhoff <h...@pop.ms>: > I am trying to use tktable with Python on Windows and am getting the notorious > "tktable isn't loaded statically" error. > I read the comments available on the www but could not make it work. > > It is clear, that my installation can not find the Tktable files. But > how can I tell it where to find them ? > (I am not a Tcl programmer). > > I am using python 2.6 on windowsXP: > I can see the Tkinter wrapper in C:\Python26\Lib\lib-tk\tktable.py > the tcl is in: C:\Python26\tcl\tk8.5\tkTable.tcl > and under C:\Python26\DLLs I have 2 dlls: tcl85.dll and tk85.dll > there is no tktable.dll but I assume it should be in the tk85.dll ??? >
Hi Harm, First, I don't remember if tktable's cvs contains the very latest version of the python tktable wrapper. So, I recommend to get the one from http://tkinter.unpy.net/wiki/TkTableWrapper (which is the latest version in tktable's cvs plus minor fixes). With this wrapper all you have to do is set the environment variable TKTABLE_LIBRARY to point to the directory that contains the tktable tcl package -- if it is not in any standard directory --. I also don't remember if there is a windows binary for tktable. Last time I used tktable on Windows I grabbed the tcl/tk distribution from activestate which includes it and many other libraries. > > I thought I could simply modify the wrapper to point to the tcl: > def __init__(self, master=None, **kw): > master = _setup_master(master) > try: > master.tk.call('package', 'require', 'Tktable') > except Tkinter.TclError: > try: > master.tk.call('load', 'tkTable.dll', 'Tktable') > except Tkinter.TclError: > master.tk.call('load','C:\\Python26\\tcl\\tk8.5\\tkTable.tcl', > 'Tktable') > #master.tk.call('load', '', 'tkTable') > But that does not work either. > > Anybody using tkTable on windows: How did you do it ? > I guess I have to modify the TCL standard path to make it find the tcl > or DLL but not having any TCL experience, I have no idea how to do that > from python. > > Regards, > > HK > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss@python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > -- -- Guilherme H. Polo Goncalves _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss