The toggle switch widget package Tsw is a library extension for Tcl/Tk versions 8.6 or higher, written in pure Tcl/Tk code. Its download location is
https://www.nemethi.de
Tablelist supports interactive cell editing with the aid of the toggleswitch widget implemented in the package mentioned above. The steps needed for using this widget for editing the cells of a given column are as follows:
tablelist::addToggleswitch command described
below.columnconfigure
subcommand to set the given column's -editable option to true
and its -editwindow option to
the value returned by the command mentioned above. (These options are
supported at cell level, too, with the aid of the cellconfigure
subcommand.)tablelist::addToggleswitch
Commandtablelist::addToggleswitch – Register the
toggleswitch widget for interactive cell editingtablelist::addToggleswitch ?name?
-editwindow column or
cell configuration option. It may be any string that is different
from the Tk core and tile edit window names. The default is
toggleswitch. The command returns its
name argument.-size
option set to 1. You can use the script corresponding to
the -editstartcommand
tablelist configuration option to override the initial settings according
to your needs.