mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
simplify
This commit is contained in:
@@ -54,7 +54,6 @@ class TimerWidget(Static):
|
|||||||
button_id = event.button.id
|
button_id = event.button.id
|
||||||
self.started = button_id == "start"
|
self.started = button_id == "start"
|
||||||
if button_id == "reset":
|
if button_id == "reset":
|
||||||
self.started = False
|
|
||||||
self.total = 0.0
|
self.total = 0.0
|
||||||
self.update_elapsed()
|
self.update_elapsed()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user