• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
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.
Raise
265Raise a window in the stacking order.
selection425 Manipulate the selection.
Send
478Send a Tcl command to another Tk application.
tk
498Query or set the application name.
tkerror
162Handler for background errors.
tkwait
436Wait for an event.
update
440Update the display by going through the event loop.
winfo
492Query window state.
wm
487Interact with the window manager.
see
position the view on the text so the new line is visible to the user:
Line
Read one line of data
Fileevent
Call back is set up
Tk support procedures.
Command
Pg. Description
tk_bisque
453Install bisque family of colors.
tk_chooseColor
433Dialog to select a color. (Tk 4.2)
tk_dialog
431Create simple dialogs.
tk_focusFollowsMouse434 Install mouse-tracking focus model.
tk_focusNext
435Focus on next widget in tab order.
tk_focusPrev
435Focus on previous widget in tab order.
tk_getOpenFile
432Dialog to open an existing file. (Tk 4.2)
tk_getSaveFile
432Dialog to open a new file. (Tk 4.2)
tk_messageBox
432Message dialog. (Tk 4.2)
tk_optionMenu
314Create an option menu.
tk_popup
314Create a pop-up menu.
tk_setPalette
453Set the standard color palette. (Tk 4.2)
-after
widget_nameInserts the widget(s) just afterwidget_name in the packing order
-anchor
position
Specifies the position of the widget(s), default ofposi tion iscente r
but can be: n ne e se s sw w ornw.
- b e f o re
widget_nameInserts the widget(s) just beforewidge t_name in the packing order.
-expand
boolean
Ifboolean is1, the widget is centered to fill the window. Default is
0
- f illstyl e
Stretches the widget to fit the window. Possible values are:
none the default, it doesn't stretch the widget(s) at all.
x stretch horizontally to fill entire width of window.
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...