mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
@@ -156,11 +156,11 @@ class Placeholder(Widget):
|
||||
)
|
||||
return variant
|
||||
|
||||
def on_click(self) -> None:
|
||||
async def _on_click(self, _: events.Click) -> None:
|
||||
"""Click handler to cycle through the placeholder variants."""
|
||||
self.cycle_variant()
|
||||
|
||||
def on_resize(self, event: events.Resize) -> None:
|
||||
def _on_resize(self, event: events.Resize) -> None:
|
||||
"""Update the placeholder "size" variant with the new placeholder size."""
|
||||
self._renderables["size"] = self._SIZE_RENDER_TEMPLATE.format(*event.size)
|
||||
if self.variant == "size":
|
||||
|
||||
Reference in New Issue
Block a user