@@ -1721,17 +1721,22 @@ class Wm:
17211721 if sys .platform == "darwin" :
17221722 @overload
17231723 def wm_attributes (self , option : Literal ["-modified" ], / ) -> bool :
1724- """Return or sets platform specific attributes.
1724+ """This subcommand returns or sets platform specific attributes
17251725
1726- When called with a single argument return_python_dict=True,
1727- return a dict of the platform specific attributes and their values.
1728- When called without arguments or with a single argument
1729- return_python_dict=False, return a tuple containing intermixed
1730- attribute names with the minus prefix and their values.
1726+ The first form returns a list of the platform specific flags and
1727+ their values. The second form returns the value for the specific
1728+ option. The third form sets one or more of the values. The values
1729+ are as follows:
17311730
1732- When called with a single string value, return the value for the
1733- specific option. When called with keyword arguments, set the
1734- corresponding attributes.
1731+ On Windows, -disabled gets or sets whether the window is in a
1732+ disabled state. -toolwindow gets or sets the style of the window
1733+ to toolwindow (as defined in the MSDN). -topmost gets or sets
1734+ whether this is a topmost window (displays above all other
1735+ windows).
1736+
1737+ On Macintosh, XXXXX
1738+
1739+ On Unix, there are currently no special attribute values.
17351740 """
17361741
17371742 @overload
@@ -1803,20 +1808,7 @@ class Wm:
18031808 def wm_attributes (self , option : Literal ["topmost" ], / ) -> bool : ...
18041809 if sys .platform == "darwin" :
18051810 @overload
1806- def wm_attributes (self , option : Literal ["modified" ], / ) -> bool :
1807- """Return or sets platform specific attributes.
1808-
1809- When called with a single argument return_python_dict=True,
1810- return a dict of the platform specific attributes and their values.
1811- When called without arguments or with a single argument
1812- return_python_dict=False, return a tuple containing intermixed
1813- attribute names with the minus prefix and their values.
1814-
1815- When called with a single string value, return the value for the
1816- specific option. When called with keyword arguments, set the
1817- corresponding attributes.
1818- """
1819-
1811+ def wm_attributes (self , option : Literal ["modified" ], / ) -> bool : ...
18201812 @overload
18211813 def wm_attributes (self , option : Literal ["notify" ], / ) -> bool : ...
18221814 @overload
@@ -1876,17 +1868,22 @@ class Wm:
18761868 if sys .platform == "darwin" :
18771869 @overload
18781870 def wm_attributes (self , option : Literal ["-modified" ], value : bool , / ) -> Literal ["" ]:
1879- """Return or sets platform specific attributes.
1871+ """This subcommand returns or sets platform specific attributes
18801872
1881- When called with a single argument return_python_dict=True,
1882- return a dict of the platform specific attributes and their values.
1883- When called without arguments or with a single argument
1884- return_python_dict=False, return a tuple containing intermixed
1885- attribute names with the minus prefix and their values.
1873+ The first form returns a list of the platform specific flags and
1874+ their values. The second form returns the value for the specific
1875+ option. The third form sets one or more of the values. The values
1876+ are as follows:
18861877
1887- When called with a single string value, return the value for the
1888- specific option. When called with keyword arguments, set the
1889- corresponding attributes.
1878+ On Windows, -disabled gets or sets whether the window is in a
1879+ disabled state. -toolwindow gets or sets the style of the window
1880+ to toolwindow (as defined in the MSDN). -topmost gets or sets
1881+ whether this is a topmost window (displays above all other
1882+ windows).
1883+
1884+ On Macintosh, XXXXX
1885+
1886+ On Unix, there are currently no special attribute values.
18901887 """
18911888
18921889 @overload
@@ -1950,19 +1947,7 @@ class Wm:
19501947 titlepath : str = ...,
19511948 topmost : bool = ...,
19521949 transparent : bool = ...,
1953- ) -> None :
1954- """Return or sets platform specific attributes.
1955-
1956- When called with a single argument return_python_dict=True,
1957- return a dict of the platform specific attributes and their values.
1958- When called without arguments or with a single argument
1959- return_python_dict=False, return a tuple containing intermixed
1960- attribute names with the minus prefix and their values.
1961-
1962- When called with a single string value, return the value for the
1963- specific option. When called with keyword arguments, set the
1964- corresponding attributes.
1965- """
1950+ ) -> None : ...
19661951 elif sys .platform == "win32" :
19671952 @overload
19681953 def wm_attributes (
0 commit comments