From 4dd98e3a16ec0d8170db6633aa6213572edbda21 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sat, 29 Apr 2023 20:49:57 -0500 Subject: [PATCH] tui: restore PascalCase class name --- src/amdgpu_stats/tui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amdgpu_stats/tui.py b/src/amdgpu_stats/tui.py index 236a055..62c7f73 100644 --- a/src/amdgpu_stats/tui.py +++ b/src/amdgpu_stats/tui.py @@ -73,11 +73,11 @@ class GPUStatsWidget(Static): def update_log(self, message: str) -> None: """Update the TextLog widget with a new message.""" - log_screen = AMDGPU_Stats.SCREENS["logs"] + log_screen = AMDGPUStats.SCREENS["logs"] log_screen.text_log.write(message) -class AMDGPU_Stats(App): +class AMDGPUStats(App): """Textual-based tool to show AMDGPU statistics.""" # apply stylesheet @@ -329,7 +329,7 @@ class PowerDisplay(Static): def start() -> None: '''Spawns the textual UI only during CLI invocation / after argparse''' if len(AMDGPU_CARDS) > 0: - app = AMDGPU_Stats(watch_css=True) + app = AMDGPUStats(watch_css=True) app.run() else: sys.exit('Could not find an AMD GPU, exiting.')