PyDocs

Nav

Graphical user interfaces with Tk

Wm.attributes

tkinter

method of WmDeprecated 3.13
  • Wm.attributes(*args, return_python_dict=False, **kwargs)
Deprecated since 3.13. Setting an attribute by passing the option name (with a leading -) and its value as two positional arguments, as in w.attributes('-alpha', 0.5), is deprecated; use keyword arguments instead.
Query or set platform-specific attributes of the window. With no arguments, return the platform-specific flags and their values; pass return_python_dict as true to get them as a dictionary. A single option name such as 'alpha' returns the value of that option, and options are set using keyword arguments (alpha=0.5).
Changed in 3.13
  • 3.13: A single attribute may now be queried by name without the leading -, and attributes may be set using keyword arguments. The return_python_dict parameter was added.
0 Examples
No examples for tkinter/Wm.attributes.
See Also
No see-alsos for tkinter/Wm.attributes
0 Notes
No notes for Wm.attributes