central::extras - Central Extras
Central Extras extends the set of Central subcommands and provides functionality that may be used in programs to display Central package info.
Returns a formatted text dump of one or more packages. If myPackages is not provided then the list of packages returned by [central packages] will be used.
Inserts package names and their text dumps into a text widget. The packagetag option specifies a tag to use when inserting the package name into the text widget. If myPackages is not provided then the list of packages returned by [central packages] will be used.
A Tcl OO class providing a GUI package browser. The browser will be [grid]ed into window. The toolkit argument can be "tk" or the default "ttk".
# Dump to text widget: package require Tk grid [text .t] .t tag configure package -foreground red package require central::extras namespace import central::central central discover central packages->textWidget .t package # Using the CentralPackageBrowser object: package require Tk package require central::extras namespace import central::central central CentralPackageBrowser new .
central
GUI, central, pkgconfig
Programming tools
Copyright © 2022 Stuart Cassoff <stwo@users.sourceforge.net>