?? options.tk
字號(hào):
#!/usr/bin/wish -f# We set the global variable state equal to 1.# We create a check button and an options menu.# These are packed side by side.set state 1checkbutton .lan -text "Language" -command {changeState} -relief flat \ -variable state -onvalue 1 -offvalue 0set optMenu [tk_optionMenu .opt lang Tcl C Lisp C++]pack .lan .opt -side left# now make C As the default using lang variableset lang C++# We need a procedure to handle the application's event.proc changeState {} { global state if $state { .opt config -state normal } else { .opt config -state disabled }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -