📄 ptt.tcl
字号:
## Simple test of omniParTcl. We just repeatedly update a couple of # variables on the C++ side and monitor their values in Tcl/Tk labels.# To test communication the other way, we allow the user to change the# output format for one of the variables.## $Id: ptt.tcl,v 1.2 1996/10/11 11:11:04 tjr Exp $# $Author: tjr $## $Log: ptt.tcl,v $# Revision 1.2 1996/10/11 11:11:04 tjr# *** empty log message ***## Revision 1.1 1995/09/04 11:01:45 krw# Initial revision##set tclVarOne 0set tclVarTwo 0CXXstartThreadOneCXXstartThreadTwolabel .l1 -textvariable tclVarOne -bg cyanlabel .l2 -textvariable tclVarTwo -bg greenbutton .q -text "Quit" -command exitbutton .b -text "Change format" -command changeFormatpack .q .l1 .l2 .b -fill bothupdateproc changeFormat {} { pack forget .b label .fl -text "New format string:" entry .fe pack .fl .fe -side left update bind .fe <Return> {CXXsetformat [.fe get]; destroy .fe; destroy .fl; pack .b; update}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -