Group Listing of Tk Commands

This section briefly lists all Tk commands, grouped logically by function.

Widgets

button

Create a button widget.

canvas

Create a canvas widget.

checkbutton

Create a checkbutton widget.

entry

Create an entry widget.

frame

Create a frame widget.

label

Create a label widget.

listbox

Create a listbox widget.

menu

Create a menu widget.

menubutton

Create a menubutton widget.

message

Create a message widget.

radiobutton

Create a radiobutton widget.

scale

Create a scale widget.

scrollbar

Create a scrollbar widget.

text

Create a text widget.

toplevel

Create a top-level widget.

Geometry Management

grid

Lay out widgets on a grid.

pack

Lay out widgets by packing them along borders.

place

Lay out widgets using explicit placement.

Event Handling

bind

Bind window events to Tcl scripts.

bindtags

Control the precedence order of event bindings.

event

Generate window events and define virtual events.

Focus

focus

Give a window the keyboard focus.

grab

Set focus grabs on windows.

tk_focusNext

Get the next window in the focus order.

tk_focusPrev

Get the previous window in the focus order.

tk_focusFollowsMouse

Arrange for the focus to follow the mouse pointer.

Dialogs

tk_chooseColor

Pop up a dialog for choosing a color.

tk_dialog

Pop up a message dialog with arbitrary buttons.

tk_getOpenFile

Pop up a dialog for choosing an existing file.

tk_getSaveFile

Pop up a dialog for choosing any filename.

tk_messageBox

Pop up a message dialog with predefined buttons.

Miscellaneous

bell

Ring the window system’s bell.

clipboard

Manipulate the window system’s clipboard.

destroy

Destroy a widget.

font

Create and delete named fonts.

image

Create and manipulate images.

lower

Lower a window in the stacking order.

option

Manipulate the Tk option database.

raise

Raise a window in the stacking order.

selection

Manipulate selection ownership and handling.

send

Evaluate a command in another interpreter.

tk

Access Tk’s internal state.

tkwait

Pause program until a defined change occurs.

tk_bisque

Set default color palette to old bisque scheme.

tk_optionMenu

Create an Option menu.

tk_pop-up

Post a popup menu.

tk_setPalette

Change the Tk color scheme.

winfo

Get information on various window properties.

wm

Communicate with the window manager.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset