Skip to content

Commit

Permalink
Merge pull request #565 from MyreMylar/add-starting-height-to-image
Browse files Browse the repository at this point in the history
Add starting_height to UIImage
  • Loading branch information
MyreMylar authored Apr 8, 2024
2 parents 7473542 + 6dcdac6 commit d8c3c19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pygame_gui/elements/ui_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ def __init__(self,
parent_element: Optional[UIElement] = None,
object_id: Optional[Union[ObjectID, str]] = None,
anchors: Optional[Dict[str, Union[str, UIElement]]] = None,
visible: int = 1):
visible: int = 1,
*,
starting_height: int = 1,):

super().__init__(relative_rect, manager, container,
starting_height=1,
starting_height=starting_height,
layer_thickness=1,
anchors=anchors,
visible=visible,
Expand Down

0 comments on commit d8c3c19

Please sign in to comment.