winfo class
Gives the class of a widget.
winfo class WINDOW
Description
The class names the kind of widget, such as Button or Frame, and is a tag of bindtags. The class of . is the name of the application with a capital first letter. The option -class of a frame or a toplevel sets the class.
Returns
A class name.
Examples
% button .b
> winfo class .b
Button
% frame .fc -class Panel
> winfo class .fc
Panel
Errors
% winfo class
wrong # args: should be "winfo class window"
-errorcode NONE
% winfo class .nope
bad window path name ".nope"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1