additional tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user