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).
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.