ui: remove unused get_width() method (#36512)

remove unused get_width() method
pull/36508/head^2
Dean Lee 3 weeks ago committed by GitHub
parent ef9683ee79
commit 5d142326f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      system/ui/widgets/list_view.py

@ -172,10 +172,6 @@ class TextAction(ItemAction):
def set_text(self, text: str | Callable[[], str]):
self._text_source = text
def get_width(self) -> int:
text_width = measure_text_cached(self._font, self.text, ITEM_TEXT_FONT_SIZE).x
return int(text_width + TEXT_PADDING)
class DualButtonAction(ItemAction):
def __init__(self, left_text: str | Callable[[], str], right_text: str | Callable[[], str], left_callback: Callable = None,

Loading…
Cancel
Save