Tk Commands Manual
- after
- Execute a command after a time delay
- bell
- Ring a display's bell
- bind
- Arrange for X events to invoke Tcl scripts
- bindtags
- Determine which bindings apply to a window, and order of evaluation
- bitmap
- Images that display two colors
- button
- Create and manipulate button widgets
- NAME
- SYNOPSIS
button pathName ?options?
- STANDARD OPTIONS
- activeBackground, Foreground, -activebackground
- cursor, Cursor, -cursor
- highlightThickness, HighlightThickness, -highlightthickness
- takeFocus, TakeFocus, -takefocus
- activeForeground, Background, -activeforeground
- disabledForeground, DisabledForeground, -disabledforeground
- image, Image, -image
- text, Text, -text
- anchor, Anchor, -anchor
- font, Font, -font
- justify, Justify, -justify
- textVariable, Variable, -textvariable
- background, Background, -background or -bg
- foreground, Foreground, -foreground or -fg
- padX, Pad, -padx
- underline, Underline, -underline
- bitmap, Bitmap, -bitmap
- highlightColor, HighlightColor, -highlightcolor
- padY, Pad, -pady
- wrapLength, WrapLength, -wraplength
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightBackground, HighlightBackground, -highlightbackground
- relief, Relief, -relief
- WIDGET-SPECIFIC OPTIONS
- DESCRIPTION
- WIDGET COMMAND
- DEFAULT BINDINGS
- KEYWORDS
- canvas
- Create and manipulate canvas widgets
- NAME
- SYNOPSIS
canvas pathName ?options?
- STANDARD OPTIONS
- background, Background, -background or -bg
- highlightThickness, HighlightThickness, -highlightthickness
- insertWidth, InsertWidth, -insertwidth
- takeFocus, TakeFocus, -takefocus
- borderWidth, BorderWidth, -borderwidth or -bd
- insertBackground, Foreground, -insertbackground
- relief, Relief, -relief
- xScrollCommand, ScrollCommand, -xscrollcommand
- cursor, Cursor, -cursor
- insertBorderWidth, BorderWidth, -insertborderwidth
- selectBackground, Foreground, -selectbackground
- yScrollCommand, ScrollCommand, -yscrollcommand
- highlightColor, HighlightColor, -highlightcolor
- insertOffTime, OffTime, -insertofftime
- selectBorderWidth, BorderWidth, -selectborderwidth
- highlightBackground, HighlightBackground, -highlightbackground
- insertOnTime, OnTime, -insertontime
- selectForeground, Background, -selectforeground
- WIDGET-SPECIFIC OPTIONS
- closeEnough, CloseEnough, -closeenough
- confine, Confine, -confine
- height, Height, -height
- scrollRegion, ScrollRegion, -scrollregion
- width, width, -width
- xScrollIncrement, ScrollIncrement, -xscrollincrement
- yScrollIncrement, ScrollIncrement, -yscrollincrement
- INTRODUCTION
- DISPLAY LIST
- ITEM IDS AND TAGS
- COORDINATES
- TRANSFORMATIONS
- INDICES
- WIDGET COMMAND
- OVERVIEW OF ITEM TYPES
- ARC ITEMS
- BITMAP ITEMS
- IMAGE ITEMS
- LINE ITEMS
- OVAL ITEMS
- POLYGON ITEMS
- RECTANGLE ITEMS
- TEXT ITEMS
- WINDOW ITEMS
- APPLICATION-DEFINED ITEM TYPES
- BINDINGS
- CREDITS
- KEYWORDS
- checkbutton
- Create and manipulate checkbutton widgets
- NAME
- SYNOPSIS
checkbutton pathName ?options?
- STANDARD OPTIONS
- activeBackground, Foreground, -activebackground
- cursor, Cursor, -cursor
- highlightThickness, HighlightThickness, -highlightthickness
- takeFocus, TakeFocus, -takefocus
- activeForeground, Background, -activeforeground
- disabledForeground, DisabledForeground, -disabledforeground
- image, Image, -image
- text, Text, -text
- anchor, Anchor, -anchor
- font, Font, -font
- justify, Justify, -justify
- textVariable, Variable, -textvariable
- background, Background, -background or -bg
- foreground, Foreground, -foreground or -fg
- padX, Pad, -padx
- underline, Underline, -underline
- bitmap, Bitmap, -bitmap
- highlightBackground, HighlightBackground, -highlightbackground
- padY, Pad, -pady
- wrapLength, WrapLength, -wraplength
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightColor, HighlightColor, -highlightcolor
- relief, Relief, -relief
- WIDGET-SPECIFIC OPTIONS
- command, Command, -command
- height, Height, -height
- indicatorOn, IndicatorOn, -indicatoron
- offValue, Value, -offvalue
- onValue, Value, -onvalue
- selectColor, Background, -selectcolor
- selectImage, SelectImage, -selectimage
- state, State, -state
- variable, Variable, -variable
- width, Width, -width
- DESCRIPTION
- WIDGET COMMAND
- BINDINGS
- KEYWORDS
- clipboard
- Manipulate Tk clipboard
- destroy
- Destroy one or more windows
- entry
- Create and manipulate entry widgets
- NAME
- SYNOPSIS
- STANDARD OPTIONS
- background, Background, -background or -bg
- highlightBackground, HighlightBackground, -highlightbackground
- insertOnTime, OnTime, -insertontime
- selectForeground, Background, -selectforeground
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightColor, HighlightColor, -highlightcolor
- insertWidth, InsertWidth, -insertwidth
- takeFocus, TakeFocus, -takefocus
- cursor, Cursor, -cursor
- highlightThickness, HighlightThickness, -highlightthickness
- justify, Justify, -justify
- textVariable, Variable, -textvariable
- exportSelection, ExportSelection, -exportselection
- insertBackground, Foreground, -insertbackground
- relief, Relief, -relief
- xScrollCommand, ScrollCommand, -xscrollcommand
- foreground, Foreground, -foreground or -fg
- insertBorderWidth, BorderWidth, -insertborderwidth
- selectBackground, Foreground, -selectbackground
- font, Font, -font
- insertOffTime, OffTime, -insertofftime
- selectBorderWidth, BorderWidth, -selectborderwidth
- WIDGET-SPECIFIC OPTIONS
- DESCRIPTION
- WIDGET COMMAND
- DEFAULT BINDINGS
- KEYWORDS
- exit
- Exit the process
- fileevent
- Execute a script when a file becomes readable or writable
- focus
- Manage the input focus
- frame
- Create and manipulate frame widgets
- NAME
- SYNOPSIS
- STANDARD OPTIONS
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightBackground, HighlightBackground, -highlightbackground
- highlightThickness, HighlightThickness, -highlightthickness
- takeFocus, TakeFocus, -takefocus
- cursor, Cursor, -cursor
- highlightColor, HighlightColor, -highlightcolor
- relief, Relief, -relief
- WIDGET-SPECIFIC OPTIONS
- background, Background, -background
- class, Class, -class
- colormap, Colormap, -colormap
- height, Height, -height
- visual, Visual, -visual
- width, Width, -width
- DESCRIPTION
- WIDGET COMMAND
- BINDINGS
- KEYWORDS
- grab
- Confine pointer and keyboard events to a window sub-tree
- image
- Create and manipulate images
- label
- Create and manipulate label widgets
- NAME
- SYNOPSIS
- STANDARD OPTIONS
- anchor, Anchor, -anchor
- font, Font, -font
- image, Image, -image
- takeFocus, TakeFocus, -takefocus
- background, Background, -background or -bg
- foreground, Foreground, -foreground or -fg
- justify, Justify, -justify
- text, Text, -text
- bitmap, Bitmap, -bitmap
- highlightBackground, HighlightBackground, -highlightbackground
- padX, Pad, -padx
- textVariable, Variable, -textvariable
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightColor, HighlightColor, -highlightcolor
- padY, Pad, -pady
- underline, Underline, -underline
- cursor, Cursor, -cursor
- highlightThickness, HighlightThickness, -highlightthickness
- relief, Relief, -relief
- wrapLength, WrapLength, -wraplength
- WIDGET-SPECIFIC OPTIONS
- DESCRIPTION
- WIDGET COMMAND
- BINDINGS
- KEYWORDS
- listbox
- Create and manipulate listbox widgets
- NAME
- SYNOPSIS
listbox pathName ?options?
- STANDARD OPTIONS
- background, Background, -background or -bg
- font, Font, -font
- relief, Relief, -relief
- takeFocus, TakeFocus, -takefocus
- borderWidth, BorderWidth, -borderwidth or -bd
- height
- selectBackground, Foreground, -selectbackground
- width
- cursor, Cursor, -cursor
- highlightBackground, HighlightBackground, -highlightbackground
- selectBorderWidth, BorderWidth, -selectborderwidth
- xScrollCommand, ScrollCommand, -xscrollcommand
- exportSelection, ExportSelection, -exportselection
- highlightColor, HighlightColor, -highlightcolor
- selectForeground, Background, -selectforeground
- yScrollCommand, ScrollCommand, -yscrollcommand
- foreground, Foreground, -foreground or -fg
- highlightThickness, HighlightThickness, -highlightthickness
- setGrid, SetGrid, -setgrid
- WIDGET-SPECIFIC OPTIONS
- DESCRIPTION
- INDICES
- WIDGET COMMAND
- DEFAULT BINDINGS
- KEYWORDS
- lower
- Change a window's position in the stacking order
- menu
- Create and manipulate menu widgets
- NAME
- SYNOPSIS
- STANDARD OPTIONS
- activeBackground, Foreground, -activebackground
- background, Background, -background or -bg
- disabledForeground, DisabledForeground, -disabledforeground
- relief, Relief, -relief
- activeBorderWidth, BorderWidth, -activeborderwidth
- borderWidth, BorderWidth, -borderwidth or -bd
- font, Font, -font
- takeFocus, TakeFocus, -takefocus
- activeForeground, Background, -activeforeground
- cursor, Cursor, -cursor
- foreground, Foreground, -foreground or -fg
- WIDGET-SPECIFIC OPTIONS
- INTRODUCTION
- COMMAND ENTRIES
- SEPARATOR ENTRIES
- CHECKBUTTON ENTRIES
- RADIOBUTTON ENTRIES
- CASCADE ENTRIES
- TEAR-OFF ENTRIES
- WIDGET COMMAND
- MENU CONFIGURATIONS
- DEFAULT BINDINGS
- BUGS
- KEYWORDS
- menubutton
- Create and manipulate menubutton widgets
- NAME
- SYNOPSIS
menubutton pathName ?options?
- STANDARD OPTIONS
- activeBackground, Foreground, -activebackground
- cursor, Cursor, -cursor
- highlightThickness, HighlightThickness, -highlightthickness
- takeFocus, TakeFocus, -takefocus
- activeForeground, Background, -activeforeground
- disabledForeground, DisabledForeground, -disabledforeground
- image, Image, -image
- text, Text, -text
- anchor, Anchor, -anchor
- font, Font, -font
- justify, Justify, -justify
- textVariable, Variable, -textvariable
- background, Background, -background or -bg
- foreground, Foreground, -foreground or -fg
- padX, Pad, -padx
- underline, Underline, -underline
- bitmap, Bitmap, -bitmap
- highlightBackground, HighlightBackground, -highlightbackground
- padY, Pad, -pady
- wrapLength, WrapLength, -wraplength
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightColor, HighlightColor, -highlightcolor
- relief, Relief, -relief
- WIDGET-SPECIFIC OPTIONS
- height, Height, -height
- indicatorOn, IndicatorOn, -indicatoron
- menu, MenuName, -menu
- state, State, -state
- width, Width, -width
- INTRODUCTION
- WIDGET COMMAND
- DEFAULT BINDINGS
- KEYWORDS
- message
- Create and manipulate message widgets
- NAME
- SYNOPSIS
message pathName ?options?
- STANDARD OPTIONS
- anchor, Anchor, -anchor
- font, Font, -font
- highlightThickness, HighlightThickness, -highlightthickness
- takeFocus, TakeFocus, -takefocus
- background, Background, -background or -bg
- foreground, Foreground, -foreground or -fg
- padX, Pad, -padx
- text, Text, -text
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightBackground, HighlightBackground, -highlightbackground
- padY, Pad, -pady
- textVariable, Variable, -textvariable
- cursor, Cursor, -cursor
- highlightColor, HighlightColor, -highlightcolor
- relief, Relief, -relief
- width
- WIDGET-SPECIFIC OPTIONS
- DESCRIPTION
- WIDGET COMMAND
- DEFAULT BINDINGS
- BUGS
- KEYWORDS
- option
- Add/retrieve window options to/from the option database
- options
- Standard options supported by widgets
- NAME
- DESCRIPTION
- activeBackground, Foreground, -activebackground
- activeBorderWidth, BorderWidth, -activeborderwidth
- activeForeground, Background, -activeforeground
- anchor, Anchor, -anchor
- background, Background, -background or -bg
- bitmap, Bitmap, -bitmap
- borderWidth, BorderWidth, -borderwidth or -bd
- cursor, Cursor, -cursor
- disabledForeground, DisabledForeground, -disabledforeground
- exportSelection, ExportSelection, -exportselection
- font, Font, -font
- foreground, Foreground, -foreground or -fg
- geometry, Geometry, -geometry
- highlightBackground, HighlightBackground, -highlightbackground
- highlightColor, HighlightColor, -highlightcolor
- highlightThickness, HighlightThickness, -highlightthickness
- image, Image, -image
- insertBackground, Foreground, -insertbackground
- insertBorderWidth, BorderWidth, -insertborderwidth
- insertOffTime, OffTime, -insertofftime
- insertOnTime, OnTime, -insertontime
- insertWidth, InsertWidth, -insertwidth
- jump, Jump, -jump
- justify, Justify, -justify
- orient, Orient, -orient
- padX, Pad, -padx
- padY, Pad, -pady
- relief, Relief, -relief
- repeatDelay, RepeatDelay, -repeatdelay
- repeatInterval, RepeatInterval, -repeatinterval
- selectBackground, Foreground, -selectbackground
- selectBorderWidth, BorderWidth, -selectborderwidth
- selectForeground, Background, -selectforeground
- setGrid, SetGrid, -setgrid
- takeFocus, TakeFocus, -takefocus
- text, Text, -text
- textVariable, Variable, -textvariable
- troughColor, Background, -troughcolor
- underline, Underline, -underline
- wrapLength, WrapLength, -wraplength
- xScrollCommand, ScrollCommand, -xscrollcommand
- yScrollCommand, ScrollCommand, -yscrollcommand
- KEYWORDS
- pack
- Geometry manager that packs around edges of cavity
- photo
- Full-color images
- place
- Geometry manager for fixed or rubber-sheet placement
- radiobutton
- Create and manipulate radiobutton widgets
- NAME
- SYNOPSIS
radiobutton pathName ?options?
- STANDARD OPTIONS
- activeBackground, Foreground, -activebackground
- cursor, Cursor, -cursor
- highlightThickness, HighlightThickness, -highlightthickness
- takeFocus, TakeFocus, -takefocus
- activeForeground, Background, -activeforeground
- disabledForeground, DisabledForeground, -disabledforeground
- image, Image, -image
- text, Text, -text
- anchor, Anchor, -anchor
- font, Font, -font
- justify, Justify, -justify
- textVariable, Variable, -textvariable
- background, Background, -background or -bg
- foreground, Foreground, -foreground or -fg
- padX, Pad, -padx
- underline, Underline, -underline
- bitmap, Bitmap, -bitmap
- highlightColor, HighlightColor, -highlightcolor
- padY, Pad, -pady
- wrapLength, WrapLength, -wraplength
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightBackground, HighlightBackground, -highlightbackground
- relief, Relief, -relief
- WIDGET-SPECIFIC OPTIONS
- command, Command, -command
- height, Height, -height
- indicatorOn, IndicatorOn, -indicatoron
- selectColor, Background, -selectcolor
- selectImage, SelectImage, -selectimage
- state, State, -state
- value, Value, -value
- variable, Variable, -variable
- width, Width, -width
- DESCRIPTION
- WIDGET COMMAND
- BINDINGS
- KEYWORDS
- raise
- Change a window's position in the stacking order
- scale
- Create and manipulate scale widgets
- NAME
- SYNOPSIS
- STANDARD OPTIONS
- activeBackground, Foreground, -activebackground
- font, Font, -font
- highlightThickness, HighlightThickness, -highlightthickness
- repeatInterval, RepeatInterval, -repeatinterval
- background, Background, -background or -bg
- foreground, Foreground, -foreground or -fg
- orient, Orient, -orient
- takeFocus, TakeFocus, -takefocus
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightBackground, HighlightBackground, -highlightbackground
- relief, Relief, -relief
- troughColor, Background, -troughcolor
- cursor, Cursor, -cursor
- highlightColor, HighlightColor, -highlightcolor
- repeatDelay, RepeatDelay, -repeatdelay
- WIDGET-SPECIFIC OPTIONS
- bigIncrement, BigIncrement, -bigincrement
- command, Command, -command
- digits, Digits, -digits
- from, From, -from
- label, Label, -label
- length, Length, -length
- resolution, Resolution, -resolution
- showValue, ShowValue, -showvalue
- sliderLength, SliderLength, -sliderlength
- state, State, -state
- tickInterval, TickInterval, -tickinterval
- to, To, -to
- variable, Variable, -variable
- width, Width, -width
- DESCRIPTION
- WIDGET COMMAND
- BINDINGS
- KEYWORDS
- scrollbar
- Create and manipulate scrollbar widgets
- NAME
- SYNOPSIS
scrollbar pathName ?options?
- STANDARD OPTIONS
- activeBackground, Foreground, -activebackground
- highlightBackground, HighlightBackground, -highlightbackground
- orient, Orient, -orient
- takeFocus, TakeFocus, -takefocus
- background, Background, -background or -bg
- highlightColor, HighlightColor, -highlightcolor
- relief, Relief, -relief
- troughColor, Background, -troughcolor
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightThickness, HighlightThickness, -highlightthickness
- repeatDelay, RepeatDelay, -repeatdelay
- cursor, Cursor, -cursor
- jump, Jump, -jump
- repeatInterval, RepeatInterval, -repeatinterval
- WIDGET-SPECIFIC OPTIONS
- DESCRIPTION
- ELEMENTS
- WIDGET COMMAND
- SCROLLING COMMANDS
- OLD COMMAND SYNTAX
- BINDINGS
- KEYWORDS
- selection
- Manipulate the X selection
- send
- Execute a command in a different application
- text
- Create and manipulate text widgets
- NAME
- SYNOPSIS
- STANDARD OPTIONS
- background, Background, -background or -bg
- highlightBackground, HighlightBackground, -highlightbackground
- insertOnTime, OnTime, -insertontime
- selectBorderWidth, BorderWidth, -selectborderwidth
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightColor, HighlightColor, -highlightcolor
- insertWidth, InsertWidth, -insertwidth
- selectForeground, Background, -selectforeground
- cursor, Cursor, -cursor
- highlightThickness, HighlightThickness, -highlightthickness
- padX, Pad, -padx
- setGrid, SetGrid, -setgrid
- exportSelection, ExportSelection, -exportselection
- insertBackground, Foreground, -insertbackground
- padY, Pad, -pady
- takeFocus, TakeFocus, -takefocus
- font, Font, -font
- insertBorderWidth, BorderWidth, -insertborderwidth
- relief, Relief, -relief
- xScrollCommand, ScrollCommand, -xscrollcommand
- foreground, Foreground, -foreground or -fg
- insertOffTime, OffTime, -insertofftime
- selectBackground, Foreground, -selectbackground
- yScrollCommand, ScrollCommand, -yscrollcommand
- WIDGET-SPECIFIC OPTIONS
- height, Height, -height
- spacing1, Spacing1, -spacing1
- spacing2, Spacing2, -spacing2
- spacing3, Spacing3, -spacing3
- state, State, -state
- tabs, Tabs, -tabs
- width, Width, -width
- wrap, Wrap, -wrap
- DESCRIPTION
- INDICES
- TAGS
- MARKS
- EMBEDDED WINDOWS
- THE SELECTION
- THE INSERTION CURSOR
- WIDGET COMMAND
- BINDINGS
- PERFORMANCE ISSUES
- KEYWORDS
- tk
- Manipulate Tk internal state
- tk_dialog
- Create modal dialog and wait for response
- tk_focusNext
- tk_focusPrev
- tk_focusFollowsMouse
- Utility procedures for managing the input focus.
- tk_optionMenu
- Create an option menubutton and its menu
- tk_popup
- Post a popup menu
- tkerror
- Command invoked to process background errors
- tkvars
- Variables used or set by Tk
- tkwait
- Wait for variable to change or window to be destroyed
- toplevel
- Create and manipulate toplevel widgets
- NAME
- SYNOPSIS
toplevel pathName ?options?
- STANDARD OPTIONS
- borderWidth, BorderWidth, -borderwidth or -bd
- highlightBackground, HighlightBackground, -highlightbackground
- highlightThickness, HighlightThickness, -highlightthickness
- takeFocus, TakeFocus, -takefocus
- cursor, Cursor, -cursor
- highlightColor, HighlightColor, -highlightcolor
- relief, Relief, -relief
- WIDGET-SPECIFIC OPTIONS
- background, Background, -background
- class, Class, -class
- colormap, Colormap, -colormap
- height, Height, -height
- None, None, -screen
- visual, Visual, -visual
- width, Width, -width
- DESCRIPTION
- WIDGET COMMAND
- BINDINGS
- KEYWORDS
- update
- Process pending events and/or when-idle handlers
- winfo
- Return window-related information
- wm
- Communicate with window manager
Copyright © 1990-1994 The Regents of the University of California.
Copyright © 1994 The Australian National University
Copyright © 1994-1995 Sun Microsystems, Inc.
Copyright © 1995 Roger E. Critchlow Jr.