central::extras(n) 1.0b3 central::extras "Central Extras"

Name

central::extras - Central Extras

Table Of Contents

Synopsis

  • package require Tcl 8.6
  • package require Tk 8.6
  • package require central::extras ?1.0b3?

Description

Central Extras extends the set of Central subcommands and provides functionality that may be used in programs to display Central package info.

COMMANDS

central textDump ?myPackages?

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.

central packages->textWidget window ?packagetag? ?myPackages?

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.

central CentralPackageBrowser new window ?toolkit?

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".

EXAMPLES

	# 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 .

See Also

central

Keywords

GUI, central, pkgconfig

Category

Programming tools