This commit is contained in:
Will McGugan
2022-10-01 14:47:02 +01:00
parent e61eaf7597
commit 02cb0313cb
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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