Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
# Tk commands
Tk {See help on these commands:
bell grab place tk_getSaveFile
bind grid radiobutton tk_menuSetFocus
bindtags image raise tk_messageBox
button label scale tk_popup
canvas labelframe scrollbar tk_textCopy
checkbutton listbox selection tk_textCut
clipboard lower send tk_textPaste
destroy menu spinbox tkwait
entry menubutton text toplevel
event message tk update
focus option tk_chooseColor winfo
font pack tk_chooseDirectory wm
frame panedwindow tk_getOpenFile
} {-nousage-}
bedit {Tk command: interactive edit of bind script.} {<tag> <sequence>}
bell {Tk command: Ring a display's bell.} {[-displayof <window>]}
bind {Tk command: Arrange for X events to invoke Tcl scripts.} {<tag> [<sequence>]
[[+]<script>]}
bindtags {Tk command: Determine which bindings apply to a window, and order of
evaluation.} {<window> [<tagList>]}
button {Tk command: Create and manipulate button widgets.} {<pathName>
[<options>]}
canvas {Tk command: Create and manipulate canvas widgets.} {<pathName>
[<options>]}
checkbutton {Create and manipulate checkbutton widgets} {<pathName> [<options>]}
clipboard {Tk command: Manipulate Tk clipboard.} {<option> [<arg> <arg> ...]}
destroy {Tk command: Destroy one or more windows.} {[<window> <window> ...]}
entry {Tk command: Create and manipulate entry widgets.} {<pathName> [<options>]}
event {Tk command: Miscellaneous event facilities: define virtual events and
generate events} {<option> [<arg> <arg> ...]}
focus {Tk command: Manage the input focus} {<option> [<arg> <arg> ...]}
font {Tk command: Create and inspect fonts.} {<option> [<arg> <arg> ...]}
frame {Tk command: Create and manipulate frame widgets} {<pathName> [<options>]}
grab {Confine pointer and keyboard events to a window sub-tree.} {<option> [<arg>
<arg> ...] }
grid {Geometry manager that arranges widgets in a grid} {<option> <arg>
[<arg> ...]}
image {Create and manipulate images} {<option> [<arg> <arg> ...]}
label {Create and manipulate label widgets.} {<pathName> [<options>]}
lower {Tk command: Change a window's position in the stacking order} {window
[belowThis]}
menu {Tk command: Create and manipulate menu widgets.} {<pathName> [<options>]}
menubutton {Tk command: Create and manipulate menubutton widgets.} {<pathName>
[<options>]}
message {Tk command: Create and manipulate message widgets.} {<pathName>
[<options>]}
option {Tk command: Add/retrieve window options to/from the option database}
{<option> <args>}
pack {Tk command: Geometry manager that packs around edges of cavity } {<option>
<arg> [<arg> ...]}
panedwindow {Tk command: create a panedwindow widget} {<pathName> [<options>]}
place {Tk command: Geometry manager for fixed or rubber-sheet placement} {<option>
<args>}
radiobutton {Tk command: Create and manipulate radiobutton widgets.} {<pathName>
[<options>]}
raise {Tk command: Change a window's position in the stacking order} {window
[aboveThis]}
scale {Tk command: Create and manipulate scale widgets.} {<pathName> [<options>]}
scrollbar {Tk command: Create and manipulate scrollbar widgets.} {<pathName>
[<options>]}
selection {Tk command: Manipulate the X selection.} {<option> [<arg> <arg> ...]}
send {Tk command: Execute a command in a different application} {[options] app cmd
[arg arg ...]}
spinbox {Tk command: Create a spinbox widget.} {<pathName> [<options>]}
text {Tk command: Create and manipulate text widgets} {<pathName> [<options>]}
tk {Tk command: Manipulate Tk internal state.} {<option> [<arg> <arg> ...]}
tk_chooseColor {Tk command: pops up a dialog box for the user to select a color.}
{[<option> <value> ...]}
tk_chooseDirectory {Tk command: pop up a dialog box for the user to select a
directory.} {[<option> <value> ...]}
tk_dialog {Tk command: Create modal dialog and wait for response.} {window title
text bitmap default string string ...}
tk_getOpenFile {Tk command: pop up a dialog box for the user to select a file to
open.} {[<option> <value> ...]}
tk_getSaveFile {Tk command: pop up a dialog box for the user to select a file to
save.} {[<option> <value> ...]}
tk_menuSetFocus {Tk command: used by the menu to save current focus and set the
focus to <pathName>.} {<pathName>}
tk_messageBox {Tk command: pops up a message window and waits for user response.}
{[<option> <value> ...]}
tk_popup {Tk command: Post a popup menu} {menu x y [entry]}
tk_textCopy {Tk command: Copies the selected text in the widget specified by
<pathName> to the clipboard.} {<pathName>}
tk_textCut {Tk command: Copies the selected text in the widget specified by
<pathName> to the clipboard and deletes the selection.} {<pathName>}
tk_textPaste {Tk command: Inserts the contents of the clipboard at the insertion
cursor in the text widget specified by <pathName>.} {<pathName>}
tkwait {Tk command: Wait for variable to change or window to be destroyed.}
{(variable|visibility|window) name}
toplevel {Tk command: Create and manipulate toplevel widgets.} {<pathName>
[<options>]}
winfo {Tk command: Return window-related information} {<option> [<arg> <arg> ...]}
wm {Tk command: Communicate with window manager.} {<option> <window> [<args>]}
# IncrTcl commands
incrTcl {See help on these commands:
body class code configbody delete
ensemble find itcl itcl_class itcl_info
itclvars local scope
} {-nousage-}
body {incrTcl command: change the body for a class method/proc.}
{className::function args body}
class {incrTcl command: create a class of objects.} {<className> <body>}
code {incrTcl command: capture the namespace context for a code fragment.} {[-
namespace <name>] <command> [<arg> <arg> ...]}
ensemble {incrTcl command: create or modify a composite command.} {<ensName>
[<command> <arg> <arg>...]}
scope {incrTcl command: capture the namespace context for a variable.} {}
{delete class} {incrTcl command: Deletes one or more [incr\ Tcl] classes called
name.} {<name> [<name>...]}
{delete namespace} {incrTcl command: Deletes one or more namespaces called name.}
{<name> [<name>...]}
{delete object} {incrTcl command: Deletes one or more [incr\ Tcl] objects called
name.} {<name> [<name>...]}
{find classes} {incrTcl command: Returns a list of classes found in the current
namespace context.} {[<class_name>]}
scope {incrTcl command: capture the namespace context for a variable.} {}