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

ANNOUNCE: Multi-column listbox and tree widget package Tablelist 6.0

111 views
Skip to first unread message

nemethi

unread,
Dec 8, 2017, 4:45:40 AM12/8/17
to
I am pleased to announce version 6.0 of the multi-column listbox and
tree widget package Tablelist.

What is new in Tablelist 6.0?
-----------------------------

1. Added support for header items (aka title rows) with the aid of the
new "header", "headerpath", and "headertag" subcommands. The first
one supports a great number of subcommands itself, like
"insert(list)", "delete", "size", "rowconfigure", "cellconfigure",
"get(formatted)", "get(formatted)cells", etc. (thanks to Hemang
Lavana, Kenneth Green, and Ralf Fassel for their proposals). The
demo scripts "embeddedWindows.tcl" and "embeddedWindows_tile.tcl" now
contain invocations of "header insert" and "header rowconfigure".

2. Added the "embed(ttk)checkbutton" and "embed(ttk)checkbuttons"
subcommands, which provide interactive cell editing with the aid of
persistently embedded checkbuttons (thanks to Mark Garvey and Holger
Jakobs for their proposal). The Tablelist Programmer's Guide now
contains an example of usage of the "embedcheckbuttons" subcommand.

3. Compatibility with the revised implementation of the text widget,
which will be contained in Tk 8.7 (thanks to Brad Lanam, Gregor
Cramer, and Francois Vogel for their valuable assistance).

4. The "dicttoitem" and "itemtodict" subcommands are now supported in
the presence of alternative, Tcl-only "dict" implementations, too
(thanks to Andy Goth for his proposal).

5. Deleting all items has become by orders of magnitude faster (thanks
to Martin Lemburg for requesting this performance improvement).

6. Guarded against invocations of the "update" command from within the
command specified as the value of the "-tooltipaddcommand" option
(thanks to Alexandru Dadalau for his bug report and discussions on
this subject).

7. Made sure that the "xview" and "yview" subcommands work as expected
even if the script was started from wthin a C application in which
the decimal point is different from "." (thanks to Paul Obermeier for
his bug report).

8. Numerous further improvements in the code, demo scripts, and
documentation.

How to get it?
--------------

Tablelist is available for free download from the URL

http://www.nemethi.de

The distribution file is "tablelist6.0.tar.gz" for UNIX and
"tablelist6_0.zip" for Windows. These files contain the same
information, except for the additional carriage return character
preceding the linefeed at the end of each line in the text files for
Windows.

Tablelist is also included in tklib, which has the address

http://core.tcl.tk/tklib

How to install it?
------------------

Install the package as a subdirectory of one of the directories given
by the "auto_path" variable. For example, you can install it as a
directory at the same level as the Tcl and Tk script libraries. The
locations of these library directories are given by the "tcl_library"
and "tk_library" variables, respectively.

To install Tablelist on UNIX, "cd" to the desired directory and unpack
the distribution file "tablelist6.0ar.gz":

gunzip -c tablelist6.0ar.gz | tar -xf -

This command will create a directory named "tablelist6.0 with the
subdirectories "demos", "doc", and "scripts".

On Windows, use WinZip or some other program capable of unpacking the
distribution file "tablelist6_0.zip" into the directory "tablelist6.0",
with the subdirectories "demos", "doc", and "scripts".

The file "tablelistEdit.tcl" in the "scripts" directory is only needed
for applications making use of interactive cell editing. Similarly, the
file "tablelistMove.tcl" in the same directory is only required for
scripts invoking the "move" or "movecolumn" tablelist command. Finally,
the file "tablelistThemes.tcl" is only needed for applications using
the package Tablelist_tile (see next section).

Next, you should check the exact version number of your Tcl/Tk
distribution, given by the "tcl_patchLevel" and "tk_patchLevel"
variables. If you are using Tcl/Tk version 8.2.X, 8.3.0 - 8.3.2, or
8.4a1, then you should proceed as described in the "How to Install It?"
section of the file "tablelist.html", located in the "doc" directory.

How to use it?
--------------

The Tablelist distribution provides two packages, called Tablelist and
Tablelist_tile. The main difference between the two is that
Tablelist_tile enables the tile-based, theme-specific appearance of
tablelist widgets; this package requires Tcl/Tk 8.4 or higher and tile
0.6 or higher. It is not possible to use both packages in one and the
same application, because both are implemented in the same "tablelist"
namespace and provide identical commands.

To be able to use the commands and variables implemented in the package
Tablelist, your scripts must contain one of the lines

package require tablelist ?version?
package require Tablelist ?version?

Likewise, to be able to use the commands and variables implemented in
the package Tablelist_tile, your scripts must contain one of the lines

package require tablelist_tile ?version?
package require Tablelist_tile ?version?

Since the packages Tablelist and Tablelist_tile are implemented in the
"tablelist" namespace, you must either import the procedures you need,
or use qualified names like "tablelist::tablelist".

For a detailed description of the commands and variables provided by
Tablelist and of the examples contained in the "demos" directory, see
the tutorial "tablelist.html" and the reference pages, all located in
the "doc" directory.

--
Csaba Nemethi http://www.nemethi.de mailto:csaba....@t-online.de

Ralf Fassel

unread,
Mar 1, 2018, 11:53:59 AM3/1/18
to
* nemethi <csaba....@t-online.de>
| I am pleased to announce version 6.0 of the multi-column listbox and
| tree widget package Tablelist.

Hi Csaba,
there is a bug in 6.0, which manifests with checkbutton cell edit types
on Windows. "Missing close brace", the [winfo] command below is missing
the closing paren.

Patch:

--- tablelist-6.0/scripts/tablelistUtil.tcl 2018/02/28 17:41:42 1.1
+++ tablelist-6.0/scripts/tablelistUtil.tcl 2018/03/01 16:47:32
@@ -6445,7 +6445,7 @@
win32 {
$frm configure -width 13 -height 13
$w configure -borderwidth 0 -font {"MS Sans Serif" 8}
- switch [winfo reqheight $w {
+ switch [winfo reqheight $w] {
17 { set y -1 }
20 { set y -3 }
25 { set y -5 }


HTH & many thanks for tablelist again!
R'

nemethi

unread,
Mar 1, 2018, 5:16:54 PM3/1/18
to
Thanks, I am aware of this regression caused by the missing close
bracket. I hope to be able to release a new version within the next few
weeks.
0 new messages