ptt.tcl

来自「编译工具」· TCL 代码 · 共 42 行

TCL
42
字号
## 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 + =
减小字号Ctrl + -
显示快捷键?