Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with our python1.5/tk/tcl installation

7 views
Skip to first unread message

(Dave Dench)

unread,
Apr 6, 1998, 3:00:00 AM4/6/98
to

Dear All,
tring to track down a possible installation problem ...
I am testing the mailed tktable.py module
#==============================================================================
#
# MODULE: This module contains the wrapper class for the tktable widget
#
# CREATED: Roethemeyer, 20.01.98
#
# VERSION: $Id: tktable.py,v 1.9 1998/03/24 14:18:52 roethe Exp $
#
#==============================================================================


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 *
************************************************
________________________________________________________________________________

Berthold Hoellmann

unread,
Apr 7, 1998, 3:00:00 AM4/7/98
to
Hello David, Hello All,

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.

0 new messages