From 373610f6ea43707071ecbf2c481ea47634437c07 Mon Sep 17 00:00:00 2001 From: kraanzu Date: Mon, 8 Jan 2024 21:14:47 +0530 Subject: [PATCH] feat: add skeleton func `set_results` --- termtyper/ui/screens/result.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/termtyper/ui/screens/result.py b/termtyper/ui/screens/result.py index c48dbcb6..900db95b 100644 --- a/termtyper/ui/screens/result.py +++ b/termtyper/ui/screens/result.py @@ -1,5 +1,6 @@ from textual.app import ComposeResult from textual.widgets import Label +from termtyper.src.stats_tracker import StatsTracker from termtyper.ui.widgets import BaseWindow @@ -11,3 +12,6 @@ class ResultScreen(BaseWindow): def compose(self) -> ComposeResult: yield Label("Result Screen") + + def set_results(self, stats: StatsTracker): + self.stats = stats