tk touchscreen
Tells if the backend has a touch screen.
tk touchscreen
Description
Gives 1 on a platform with a touch screen, such as a phone, and 0 on the others. An app can use it to make its widgets larger for a finger.
Returns
1 or 0.
Examples
% tk touchscreen
0
Errors
% tk touchscreen x
wrong # args: should be "tk touchscreen"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.4