mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
polish
This commit is contained in:
@@ -118,6 +118,7 @@ class Timer:
|
||||
self._active.clear()
|
||||
|
||||
def reset(self) -> None:
|
||||
"""Reset the timer, so it starts from the beginning."""
|
||||
self._active.set()
|
||||
self._reset = True
|
||||
|
||||
|
||||
@@ -697,6 +697,7 @@ class Widget(DOMNode):
|
||||
|
||||
@property
|
||||
def content_size(self) -> Size:
|
||||
"""Get the size of the content area."""
|
||||
return self.region.shrink(self.styles.gutter).size
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user