General Commands

There are commands to handle widgets, e. g. to handle the geometry of a text widget:

set text1 [text .t]
pack $text1

Here the same command “translated” to Chicken/Tk:

(define text1 (tk 'create-widget 'text))
(tk/pack text1)

Here a list of general commands and their Tcl/Tk pendants:

Chicken/Tk

Tcl/Tk

tk/bgerror

bgerror

tk/bind

bind

tk/bindtags

bindtags

tk/clipboard

clipboard

tk/destroy

destroy

tk/event

event

tk/focus

focus

tk/grab

grab

tk/grid

grid

tk/image

image

tk/lower

lower

tk/option

option

tk/pack

pack

tk/place

place

tk/raise

raise

tk/selection

selection

tk/winfo

winfo

tk/wm

wm

tk/choosecolor

tk_chooseColor

tk/choosedirectory

tk_chooseDirectory

tk/dialog

tk_dialog

tk/getopenfile

tk_getOpenFile

tk/getsavefile

tk_getSaveFile

tk/messagebox

tk_messageBox

tk/focusfollowsmouse

tk_focusFollowsMouse

tk/focusnext

tk_focusNext

tk/focusprev

tk_focusPrev

tk/popup

tk_popup

tk/wait

tkwait


© Author | Home | Sitemap