Tk Reference Manual: Contents
Contents
·
Index
·
Keywords
·
About...
Tk built-in commands
·
General
·
Resources and Options
·
Widgets
·
Themed Widgets
·
Dialogs and toplevels
·
Geometry management
·
Events and bindings
·
Inter-client Communication
·
Tk C Procedures
·
Initialization
·
Widget Implementation
·
Events and Bindings
·
Resources and Options
·
Images
·
Canvas Widgets
·
Graphics Routines
·
System-specific
·
Selection and Clipboard
Tk built-in commands
General
tk - Manipulate Tk internal state
Safe Tk - Load Tk into a safe interpreter.
tkerror - Command invoked to process background errors
tkvars - Variables used or set by Tk
winfo - Return window-related information
wm - Communicate with window manager
busy - confine pointer and keyboard events to a window sub-tree
tkwait - Wait for variable to change or window to be destroyed
destroy - Destroy one or more windows
console - Control the console on systems without a real console
wish - Simple windowing shell
Resources and Options
option - Add/retrieve window options to/from the option database
options - Standard options supported by widgets
colors - symbolic color names recognized by Tk
cursors - mouse cursors available in Tk
keysyms - keysyms recognized by Tk
font - Create and inspect fonts.
image - Create and manipulate images
bitmap - Images that display two colors
photo - Full-color images
tk_setPalette - Modify the Tk color palette
Widgets
button - Create and manipulate button widgets
canvas - Create and manipulate canvas widgets
checkbutton - Create and manipulate checkbutton widgets
entry - Create and manipulate entry widgets
frame - Create and manipulate frame widgets
label - Create and manipulate label widgets
labelframe - Create and manipulate labelframe widgets
listbox - Create and manipulate listbox widgets
menu - Create and manipulate menu widgets
menubutton - Create and manipulate menubutton widgets
message - Create and manipulate message widgets
tk_optionMenu - Create an option menubutton and its menu
panedwindow - Create and manipulate panedwindow widgets
radiobutton - Create and manipulate radiobutton widgets
scale - Create and manipulate scale widgets
scrollbar - Create and manipulate scrollbar widgets
spinbox - Create and manipulate spinbox widgets
text - Create and manipulate text widgets
Themed Widgets
ttk::widget - Standard options and commands supported by Tk themed 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::labelframe - Container widget with optional label
ttk::label - Display a text string and/or image
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::treeview - hierarchical multicolumn data display widget
ttk::style - Manipulate style database
ttk_vsapi - Define a Microsoft Visual Styles element
Dialogs and toplevels
toplevel - Create and manipulate toplevel widgets
tk_messageBox - pops up a message window and waits for user response.
tk_dialog - Create modal dialog and wait for response
tk_getOpenFile - pop up a dialog box for the user to select a file to open or save.
tk_chooseDirectory - pops up a dialog box for the user to select a directory.
tk_chooseColor - pops up a dialog box for the user to select a color.
fontchooser - control font selection dialog
tk_popup - Post a popup menu
Geometry management
grid - Geometry manager that arranges widgets in a grid
pack - Geometry manager that packs around edges of cavity
place - Geometry manager for fixed or rubber-sheet placement
lower - Change a window's position in the stacking order
raise - Change a window's position in the stacking order
Events and bindings
bind - Arrange for X events to invoke Tcl scripts
bindtags - Determine which bindings apply to a window, and order of evaluation
event - Miscellaneous event facilities: define virtual events and generate events
grab - Confine pointer and keyboard events to a window sub-tree
focus - Manage the input focus
tk_focusNext - Utility procedures for managing the input focus.
Inter-client Communication
bell - Ring a display's bell
selection - Manipulate the X selection
clipboard - Manipulate Tk clipboard
send - Execute a command in a different application
Tk C Procedures
Initialization
Tk_Main - main program for Tk-based applications
Tk_Init - add Tk to an interpreter and make a new Tk application.
Tk_InitStubs - initialize the Tk stubs mechanism
Tk_ParseArgv - process command-line options
Tk_MainWindow - functions for querying main window information
Tk_MainLoop - loop for events until all windows are deleted
Tk_SetAppName - Set the name of an application for 'send' commands
Tk_CreateErrorHandler - handle X protocol errors
Tk_InitConsoleChannels - Install the console channels as standard channels
Tk_StrictMotif - Return value of tk_strictMotif variable
Widget Implementation
Tk_CreateWindow - create or delete window
Tk_ConfigureWindow - change window configuration or attributes
Tk_SetClass - set or retrieve a window's class
Tk_SetClassProcs - register widget specific procedures
Tk_CreateEventHandler - associate procedure callback with an X event
Tk_GeometryRequest - specify desired geometry or internal border for a window
Tk_WindowId - retrieve information from Tk's local data structure
Tk_MaintainGeometry - maintain geometry of one window relative to another
Tk_ManageGeometry - arrange to handle geometry requests for a window
Tk_SetGrid - control the grid for interactive resizing
Tk_CoordsToWindow - Find window containing a point
Tk_SetWindowVisual - change visual characteristics of window
Tk_MapWindow - map or unmap a window
Tk_MoveToplevelWindow - Adjust the position of a top-level window
Tk_RestackWindow - Change a window's position in the stacking order
Tk_Name - convert between names and window tokens
Tk_GetAnchorFromObj - translate between strings and anchor positions
Tk_GetScrollInfo - parse arguments for scrolling commands
Tk_GetUid - convert from string to unique identifier
Events and Bindings
Tk_CreateBindingTable - invoke scripts in response to X events
Tk_Grab - manipulate grab state in an application
Tk_HandleEvent - invoke event handlers for window system events
Tk_RestrictEvents - filter and selectively delay X events
Tk_QueueWindowEvent - Add a window event to the Tcl event queue
Tk_SetCaretPos - set the display caret location
Tk_GetUserInactiveTime - discover user inactivity time
Resources and Options
Tk_AddOption - Add an option to the option database
Tk_GetOption - retrieve an option from the option database
Tk_SetOptions - process configuration options
Tk_ConfigureWidget - process configuration options for widgets
Tk_FontId - accessor functions for fonts
Images
Tk_GetImage - use an image in a widget
Tk_CreateImageType - define new kind of image
Tk_CreatePhotoImageFormat - define new file format for photo images
Tk_DeleteImage - Destroy an image.
Tk_FindPhoto - manipulate the image data stored in a photo image.
Tk_AllocBitmapFromObj - maintain database of single-plane pixmaps
Tk_ImageChanged - notify widgets that image needs to be redrawn
Tk_NameOfImage - Return name of image.
Canvas Widgets
Tk_CanvasPs - utility procedures for generating Postscript for canvases
Tk_CanvasTkwin - utility procedures for canvas type managers
Tk_CanvasTextInfo - additional information for managing text items in canvases
Tk_CreateItemType - define new kind of canvas item
Graphics Routines
Tk_GetGC - maintain database of read-only graphics contexts
Tk_GetCapStyle - translate between strings and cap styles
Tk_GetColormap - allocate and free colormaps
Tk_AllocColorFromObj - maintain database of colors
Tk_AllocCursorFromObj - maintain database of cursors
Tk_GetDash - convert from string to valid dash structure.
Tk_AllocFontFromObj - maintain database of fonts
Tk_GetJoinStyle - translate between strings and join styles
Tk_GetJustifyFromObj - translate between strings and justification styles
Tk_GetPixelsFromObj - translate between strings and screen units
Tk_GetPixmap - allocate and free pixmaps
Tk_GetReliefFromObj - translate between strings and relief values
Tk_GetRootCoords - Compute root-window coordinates of window
Tk_DrawFocusHighlight - draw the traversal highlight ring for a widget
Tk_Alloc3DBorderFromObj - draw borders with three-dimensional appearance
Tk_ComputeTextLayout - routines to measure and display single-font, multi-line, justified text.
Tk_MeasureChars - routines to measure and display simple single-line strings.
System-specific
Tk_GetHISTANCE - retrieve the global application instance handle
HWND - manage interactions between the Windows handle and an X window
Tk_HWNDToWindow - Find Tk's window information for a Windows window
Tk_IdToWindow - Find Tk's window information for an X window
Tk_GetVRootGeometry - Get location and size of virtual root for window
Tk_GetVisual - translate from string to visual
Tk_FreeXId - make X resource identifier available for reuse
Tk_CreateClientMessageHandler - associate procedure callback with ClientMessage type X events
Tk_CreateGenericHandler - associate procedure callback with all X events
Tk_InternAtom - manage cache of X atoms
Selection and Clipboard
Tk_ClipboardClear - Manage the clipboard
Tk_ClearSelection - Deselect a selection
Tk_CreateSelHandler - arrange to handle requests for a selection
Tk_GetSelection - retrieve the contents of a selection
Tk_OwnSelection - make a window the owner of the primary selection