Package

Tcl/Tk xtablelist

XTablelist Package Purpose: A TclOO class to extend the fabulous tablelist widget. TclOO naming conventions: public methods - starts with lower case declaration names, whereas private methods - starts with uppercase naming, so we use CamelCase … widget commands: xtablelist::xtablelist xtablelist::configure xtablelist::cget xtablelist::xtablelist understands all commands from original tablelist, for more sub-command refer as well to the public class interface widget options: -xhideoption boolean “yes”,1 / “no”,0 (default: “no”), hide/show a popup-menu which allows to manipulate the tablelist column display

Continue reading

Tcl/tk BWidget_patch

BWidget_patch Purpose: This package solves some issues with BWidget in conjunction with the ttk widget set. As long as the bugs are not fixed, this package can be used to “overload” original procedures where the problems araise. Usage: A typical initialization sequence might look like: # starkit support sequence: if {[catch { package require starkit if {[starkit::startup] eq "sourced"} { return } }]} { namespace eval ::starkit { if {[set this [info script]] == ""} { set this [info nameofexecutable] } variable topdir [file normalize [file dirname $this]] } } # where to find support packages: lappend auto_path [file join $::starkit::topdir "lib"] package require Tk package require tile # initialize a custom theme (optional): set ctheme "plastik" package require ttk::theme::${ctheme} ttk::setTheme $ctheme package require -exact BWidget 1.

Continue reading

HelpViewer based on Tkhtml 3.0

HelpViewer Application The HelpViewer is a standalone application to display html files which might be organized in a directory structure. The program is written in tcl/tk and is based on the Tkhtml 3.0 library. When starting the application, a dialog pops up, where you can drag&drop your prefered directory using the file explorer: Features: Once a directory is specified, the program traverses down the tree to search for all available html files.

Continue reading

Tcl/tk html3widget

html3widget - a tcl/tk megawidget Purpose: The html3widget is a tcl/tk package which implements a megawidget to render html + css. The code is based on Tkhtml3.0 and as well HV3 which (for the moment) is not actively developed, but still offers a solid base to render html including css support. The following picture illustrates of how a html file with underlying css bootstrap3.xx framework might look like: The package might be used to implement an internal help viewer (for an application) in an easy way.

Continue reading