additional tests

This commit is contained in:
2025-06-07 19:56:11 +02:00
parent 3f9bd0072e
commit c981fbd1c0
3 changed files with 651 additions and 0 deletions
+10
View File
@@ -167,6 +167,11 @@ class RenderableButton(Box, Queriable):
"""Get the abstract Button object"""
return self._button
@property
def size(self) -> tuple:
"""Get the size as a tuple"""
return tuple(self._size)
def render(self) -> Image.Image:
"""
Render the button.
@@ -501,6 +506,11 @@ class RenderableFormField(Box, Queriable):
return canvas
@property
def size(self) -> tuple:
"""Get the size as a tuple"""
return tuple(self._size)
def set_focused(self, focused: bool):
"""Set whether the field is focused"""
self._focused = focused