@@ -766,6 +766,8 @@ class Wm:
766766 ) -> tuple [int , int , int , int ] | None : ...
767767
768768 aspect = wm_aspect
769+
770+ # wm_attributes: Get all attributes
769771 if sys .version_info >= (3 , 13 ):
770772 @overload
771773 def wm_attributes (self , * , return_python_dict : Literal [False ] = False ) -> tuple [Any , ...]: ...
@@ -775,6 +777,7 @@ class Wm:
775777 @overload
776778 def wm_attributes (self ) -> tuple [Any , ...]: ...
777779
780+ # wm_attributes: Get one attribute (old variant using string that starts with "-")
778781 @overload
779782 def wm_attributes (self , option : Literal ["-alpha" ], / ) -> float : ...
780783 @overload
@@ -806,6 +809,7 @@ class Wm:
806809 @overload
807810 def wm_attributes (self , option : Literal ["-type" ], / ) -> str : ...
808811 if sys .version_info >= (3 , 13 ):
812+ # wm_attributes: Get one attribute (new variant without "-")
809813 @overload
810814 def wm_attributes (self , option : Literal ["alpha" ], / ) -> float : ...
811815 @overload
@@ -837,6 +841,7 @@ class Wm:
837841 @overload
838842 def wm_attributes (self , option : Literal ["type" ], / ) -> str : ...
839843
844+ # wm_attributes: Set an attribute (old variant using string that starts with "-")
840845 @overload
841846 def wm_attributes (self , option : str , / ): ...
842847 @overload
@@ -868,9 +873,11 @@ class Wm:
868873 @overload
869874 def wm_attributes (self , option : Literal ["-type" ], value : str , / ) -> Literal ["" ]: ...
870875
876+ # wm_attributes: Set multiple attributes (old variant using strings that start with "-")
871877 @overload
872878 def wm_attributes (self , option : str , value , / , * __other_option_value_pairs : Any ) -> Literal ["" ]: ...
873879
880+ # wm_attributes: Set an attribute (new variant with kwarg instead of string)
874881 if sys .version_info >= (3 , 13 ):
875882 if sys .platform == "darwin" :
876883 @overload
@@ -1534,8 +1541,8 @@ class Canvas(Widget, XView, YView):
15341541 def tag_bind (self , tagOrId : str | int , * , func : str , add : Literal ["" , "+" ] | bool | None = None ) -> None : ...
15351542
15361543 def tag_unbind (self , tagOrId : str | int , sequence : str , funcid : str | None = None ) -> None : ...
1537- def canvasx (self , screenx , gridspacing = None ): ...
1538- def canvasy (self , screeny , gridspacing = None ): ...
1544+ def canvasx (self , screenx : float | str , gridspacing : float | str | None = None ) -> float : ...
1545+ def canvasy (self , screeny : float | str , gridspacing : float | str | None = None ) -> float : ...
15391546
15401547 @overload
15411548 def coords (self , tagOrId : str | int , / ) -> list [float ]: ...
0 commit comments