Name
tk
- tk
operation
[arg arg
...] The tk command provides access to miscellaneous elements of Tk’s internal state. The following operations are defined:
- tk appname
newName
Change the name of the application to
newName
. If the namenewName
is already in use, a suffix of the form#2
or#3
is appended to make the name unique. IfnewName
is not given, the application’s current name is returned. As a general rule, the application name should not begin with a capital letter, as that form is reserved for class names. If sends have been disabled by deleting the send command, this command will reenable them and recreate the send command.- tk scaling
[-displayof
window
] [number
] Set the scaling factor for conversion between physical units (e.g., points or inches) and pixels.
Number
is a floating-point value that specifies the number of pixels per point (1/72 inch) onwindow
’s display. Ifwindow
is not given, it defaults to the main window. Ifnumber
is omitted, the current scaling factor is returned.
- tk appname
Get Tcl/Tk in a Nutshell 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.