The send Command
The send command invokes a Tcl command in another application. The general form of the command is:
send options interp arg ?arg...?
The send command behaves like eval; if you give it extra arguments, it concatenates them to form a single command. If your argument structure is important, use list to build the command. Table 40-1 lists the options to send:
-async | Does not wait for the remote command to complete. |
-displayof window | Sends to the application on the same display as window. |
-- | Delimits options from the interp argument. Useful if the interp begins with a dash. |
The interp argument is the name of the other application. An application defines its own name when it creates its main window. ...
Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.