Tk Library Source Code

View Ticket
Login
Ticket UUID: 2159700
Title: Bug in tablelist when interacting with gridplus
Type: Bug Version: None
Submitter: hgiese Created on: 2008-10-11 17:02:50
Subsystem: tklib :: tablelist Assigned To: nemethi
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-11-01 03:05:03
Resolution: Rejected Closed By: nemethi
    Closed on: 2008-10-31 20:05:03
Description:
Hello,
I noticed an intriguing bug when gridplus and tablelist interact. See the following suite of commands.

D:\tmp>tclsh85
% package require gridplus
2.3
% package present tablelist_tile
4.9.2
% pack [tablelist::tablelist .tbl1 -columns {0 col1 0 col2}]
% source example2.tcl
invalid command name ".__helpLabel"
% pack [tablelist::tablelist .tbl2 -columns {0 col1 0 col2}]
invalid command name ".__helpLabel"
% info patchlevel
8.5.3

- After loading gridplus (which also loads tablelist_tile) I can create a table. 
- Trying to [source example2.tcl] (an example from the gridplus distro which also wants to create a table) leads to an error. This error occurs inside of tablelist's code.
- Now a command like the first one fails, too.

Conclusion: 
- gridplus interacts with tablelist in a way which provokes an error.
- Once this error occurred it seems to be "persistent".

One more detail: This depends on the version of tablelist: Loading example2.tcl from the gridplus starkit works - but this starkit contains tablelist 4.9.1.
Best regards
Helmut Giese
User Comments: nemethi added on 2008-11-01 03:05:03:
As reported by Helmut both in private mail and on c.l.t., the bug was in his code, not in Tablelist.  The widget .__helpLabel, created by Tablelist, was destroyed by his script.