Your company here — click to reach over 10,000 unique daily visitors

Package tk

The graphical toolkit for the Tcl scripting language


When paired with the Tcl scripting language, Tk provides a fast and powerful
way to create cross-platform GUI applications.

Version: 8.6.14

See also: tk-devel.

General Commands

wish Simple windowing shell

Tcl/Tk Keywords

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
busy confine pointer events to a window sub-tree
button Create and manipulate 'button' action widgets
canvas Create and manipulate 'canvas' hypergraphics drawing surface widgets
checkbutton Create and manipulate 'checkbutton' boolean selection widgets
clipboard Manipulate Tk clipboard
colors symbolic color names recognized by Tk
console Control the console on systems without a real console
cursors mouse cursors available in Tk
destroy Destroy one or more windows
entry Create and manipulate 'entry' one-line text entry widgets
event Miscellaneous event facilities: define virtual events and generate events
focus Manage the input focus
font Create and inspect fonts.
fontchooser control font selection dialog
frame Create and manipulate 'frame' simple container widgets
geometry Variables used or set by Tk
grab Confine pointer and keyboard events to a window sub-tree
grid Geometry manager that arranges widgets in a grid
image Create and manipulate images
keysyms keysyms recognized by Tk
label Create and manipulate 'label' non-interactive text or image widgets
labelframe Create and manipulate 'labelframe' labelled container widgets
listbox Create and manipulate 'listbox' item list widgets
lower Change a window's position in the stacking order
menu Create and manipulate 'menu' widgets and menubars
menubutton Create and manipulate 'menubutton' pop-up menu indicator widgets
message Create and manipulate 'message' non-interactive text widgets
option Add/retrieve window options to/from the option database
options Standard options supported by widgets
pack Geometry manager that packs around edges of cavity
pack_old Obsolete syntax for packer geometry manager
panedwindow Create and manipulate 'panedwindow' split container widgets
photo Full-color images
place Geometry manager for fixed or rubber-sheet placement
radiobutton Create and manipulate 'radiobutton' pick-one widgets
raise Change a window's position in the stacking order
safe_loadTk Load Tk into a safe interpreter.
scale Create and manipulate 'scale' value-controlled slider widgets
scrollbar Create and manipulate 'scrollbar' scrolling control and indicator widgets
selection Manipulate the X selection
send Execute a command in a different application
spinbox Create and manipulate 'spinbox' value spinner widgets
text Create and manipulate 'text' hypertext editing widgets
tk Manipulate Tk internal state
tk_bindForTraversal alias for tk_menuBar
tk_bisque alias for tk_setPalette
tk_chooseColor pops up a dialog box for the user to select a color.
tk_chooseDirectory pops up a dialog box for the user to select a directory.
tk_dialog Create modal dialog and wait for response
tk_focusFollowsMouse alias for tk_focusNext
tk_focusNext Utility procedures for managing the input focus.
tk_focusPrev alias for tk_focusNext
tk_getOpenFile pop up a dialog box for the user to select a file to open or save.
tk_getSaveFile alias for tk_getOpenFile
tk_library alias for geometry
tk_mac Access Mac-Specific Functionality on OS X from Tk
tk_menuBar Obsolete support for menu bars
tk_menuSetFocus alias for menu
tk_messageBox pops up a message window and waits for user response.
tk_optionMenu Create an option menubutton and its menu
tk_patchLevel alias for geometry
tk_popup Post a popup menu
tk_setPalette Modify the Tk color palette
tk_strictMotif alias for geometry
tk_textCopy alias for text
tk_textCut alias for text
tk_textPaste alias for text
tk_version alias for geometry
tkerror Command invoked to process background errors
tkwait Wait for variable to change or window to be destroyed
toplevel Create and manipulate 'toplevel' main and popup window widgets
ttk_button Widget that issues a command when pressed
ttk_checkbutton On/off widget
ttk_combobox text field with popdown selection list
ttk_entry Editable text field widget
ttk_frame Simple container widget
ttk_image Define an element based on an image
ttk_intro Introduction to the Tk theme engine
ttk_label Display a text string and/or image
ttk_labelframe Container widget with optional label
ttk_menubutton Widget that pops down a menu when pressed
ttk_notebook Multi-paned container widget
ttk_panedwindow Multi-pane container window
ttk_progressbar Provide progress feedback
ttk_radiobutton Mutually exclusive option widget
ttk_scale Create and manipulate a scale widget
ttk_scrollbar Control the viewport of a scrollable widget
ttk_separator Separator bar
ttk_sizegrip Bottom-right corner resize widget
ttk_spinbox Selecting text field widget
ttk_style Manipulate style database
ttk_treeview hierarchical multicolumn data display widget
ttk_vsapi Define a Microsoft Visual Styles element
ttk_widget Standard options and commands supported by Tk themed widgets
winfo Return window-related information
wm Communicate with window manager