When run I get the following ...
ye{dave}76: python1.5 tktable.py
create command
Traceback (innermost last):
File "tktable.py", line 334, in ?
__test()
File "tktable.py", line 294, in __test
root.tk.call('load', '', 'Tktable')
TclError: package "Tktable" isn't loaded statically
ye{dave}77:
Question : anyone seen this behaviour before and can offer any pointers
PS the 1.5 Distribution demos work fine except for the "create command"
remnant.
Thanks,
David
________________________________________________________________________________
************************************************
* David Dench *
* The University of Huddersfield , UK *
* Tel: 01484 472083 *
* email: d.j....@hud.ac.uk *
************************************************
________________________________________________________________________________
Yes I've seen this also, here in my environment. My fix was:
- delete the line 294 ("root.tk.call('load', '', 'Tktable')")
- replace Table.__init__ by:
def __init__(self, master, cnf={}, **kw):
try:
master.tk.call('package', 'require', 'Tktable')
except Tkinter.TclError:
# Another way to try to dynamically load Tktable:
master.tk.call('load', '', 'Tktable')
Tkinter.Widget.__init__(self, master, 'table', cnf, kw)
So tkTable worked for me.
Cheers
Berthold Höllmann
--
se6...@public.uni-hamburg.de
It is unlawful to use this email address for unsolicited ads
(USC Title 47 Sec.227). I will assess a US$500 charge for
reviewing and deleting each unsolicited ad.