Tk widget-creation commands
Command Pg. Description
button
304Create a command button.
checkbutton308 Create a toggle button that is linked to a Tcl variable.
radiobutton308 Create one of a set of radio buttons linked to one variable.
menubutton312 Create a button that posts a menu.
menu
312Create a menu.
canvas
391Create a canvas, which supports lines, boxes, bitmaps,
images, arcs, text, polygons, and embedded widgets.
label
336Create a read-only, one-line text label.
entry
353Create a one-line text entry widget.
message
338Create a read-only, multiline text message.
listbox
359Create a line-oriented, scrolling text widget.
text
369Create a general-purpose, editable text widget.
scrollbar
345Create a scrollbar that can be linked to another widget.
scale
341Create a scale widget that adjusts the value of a variable.
frame
333Create a container widget used with geometry managers.
& hold the widgets that appear along the top of the interface.
fill \u2013
x, y, both
packing option makes the frame fill out to the whole width of the
main window:
toplevel
333Create a frame that is a new top level window.
.
Tk widget-manipulation commands.
Command Pg. Description
bell
344Ring the terminal bell device.
bind
285Bind a Tcl command to an event.
bindtags287 Create binding classes and control binding inheritance.
clipboard426 Manipulate the clipboard.
destroy
437Delete a widget.
event
297Define and generate virtual events.
focus
434Control the input focus.
font
471Set and query font attributes and measurements.
grab
436Steal the input focus from other widgets.
grid
274Arrange widgets into a grid with constraints.
image
458Create and manipulate images.
lower
265Lower a window in the stacking order.
option
325Set and query the resources database.
Pack
264Pack a widget in the display with constraints.
place
283Place a widget in the display with positions.
Leave a Comment