@@ -727,9 +727,7 @@ def update_containing_rect_position(self):
727
727
728
728
self ._update_container_clip ()
729
729
730
- def set_relative_position (self , position : Union [pygame .math .Vector2 ,
731
- Tuple [int , int ],
732
- Tuple [float , float ]]):
730
+ def set_relative_position (self , position : Union [pygame .math .Vector2 , Tuple [int , int ], Tuple [float , float ]]):
733
731
"""
734
732
Method to directly set the relative rect position of an element.
735
733
@@ -747,9 +745,7 @@ def set_relative_position(self, position: Union[pygame.math.Vector2,
747
745
self ._update_container_clip ()
748
746
self .ui_container .on_contained_elements_changed (self )
749
747
750
- def set_position (self , position : Union [pygame .math .Vector2 ,
751
- Tuple [int , int ],
752
- Tuple [float , float ]]):
748
+ def set_position (self , position : Union [pygame .math .Vector2 , Tuple [int , int ], Tuple [float , float ]]):
753
749
"""
754
750
Method to directly set the absolute screen rect position of an element.
755
751
@@ -765,9 +761,7 @@ def set_position(self, position: Union[pygame.math.Vector2,
765
761
self ._update_container_clip ()
766
762
self .ui_container .on_contained_elements_changed (self )
767
763
768
- def set_minimum_dimensions (self , dimensions : Union [pygame .math .Vector2 ,
769
- Tuple [int , int ],
770
- Tuple [float , float ]]):
764
+ def set_minimum_dimensions (self , dimensions : Union [pygame .math .Vector2 , Tuple [int , int ], Tuple [float , float ]]):
771
765
"""
772
766
If this window is resizable, then the dimensions we set here will be the minimum that
773
767
users can change the window to. They are also used as the minimum size when
@@ -785,9 +779,7 @@ def set_minimum_dimensions(self, dimensions: Union[pygame.math.Vector2,
785
779
new_height = max (self .minimum_dimensions [1 ], self .rect .height )
786
780
self .set_dimensions ((new_width , new_height ))
787
781
788
- def set_dimensions (self , dimensions : Union [pygame .math .Vector2 ,
789
- Tuple [int , int ],
790
- Tuple [float , float ]],
782
+ def set_dimensions (self , dimensions : Union [pygame .math .Vector2 , Tuple [int , int ], Tuple [float , float ]],
791
783
clamp_to_container : bool = False ):
792
784
"""
793
785
Method to directly set the dimensions of an element.
0 commit comments