Skip to content

Commit 03f3809

Browse files
eruvanosCopilot
andauthored
Update arcade/gui/widgets/__init__.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8463150 commit 03f3809

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arcade/gui/widgets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def size(self) -> Vec2:
592592
return Vec2(self.width, self.height)
593593

594594
@size.setter
595-
def size(self, value):
595+
def size(self, value: Tuple[float, float] | Vec2):
596596
width, height = value
597597
if width <= 0 or height <= 0:
598598
raise ValueError("Width and height must be positive")

0 commit comments

Comments
 (0)