Name
tk_
- tk_bisquetk_chooseColor [
option value
...]tk_dialogtopw title text bitmap default string
[string
...]tk_focusNextwindow
tk_focusPrevwindow
tk_focusFollowsMousewindow
tk_getOpenFile [option value
...]tk_getSaveFile [option value
...]tk_messageBox [option value
...]tk_optionMenuwindow varName value
[value
...]tk_ popup menux y
[entry
]tk_setPalettecolor
tk_setPalettename color
[name color
...] Each of these commands is a Tcl procedure defined at runtime in the Tk script library. The tk_bisque procedure sets the default color scheme to the light brown (''bisque'') scheme used by Tk 3.6 and earlier versions. The tk_setPalette procedure called with a single argument
color
sets the default color scheme to a computed one based oncolor
as the default background color. The tk_setPalette can be called with one or morename-color
pairs to set specific colors for the default color scheme. The possible values forname
are:activeBackground
activeForeground
background
disabledForeground
foreground
highlightBackground
highlightColor
insertBackground
selectColor
selectBackground
selectForeground
troughColor
The tk_getOpenFile procedure posts a modal dialog for choosing an existing filename. The tk_getSaveFile procedure does the same but does not require the chosen file to exist. In fact, if an existing file is chosen, a separate dialog box prompts for confirmation. Both procedures return the full pathname of the chosen file, or the empty string if the user cancels the operation. The available options for ...
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.