Archived
1
1
Fork 0

tui: restore PascalCase class name

This commit is contained in:
Josh Lay 2023-04-29 20:49:57 -05:00
parent 0bfca03f98
commit 4dd98e3a16
Signed by: jlay
GPG key ID: B265E45CACAD108A

View file

@ -73,11 +73,11 @@ class GPUStatsWidget(Static):
def update_log(self, message: str) -> None: def update_log(self, message: str) -> None:
"""Update the TextLog widget with a new message.""" """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) log_screen.text_log.write(message)
class AMDGPU_Stats(App): class AMDGPUStats(App):
"""Textual-based tool to show AMDGPU statistics.""" """Textual-based tool to show AMDGPU statistics."""
# apply stylesheet # apply stylesheet
@ -329,7 +329,7 @@ class PowerDisplay(Static):
def start() -> None: def start() -> None:
'''Spawns the textual UI only during CLI invocation / after argparse''' '''Spawns the textual UI only during CLI invocation / after argparse'''
if len(AMDGPU_CARDS) > 0: if len(AMDGPU_CARDS) > 0:
app = AMDGPU_Stats(watch_css=True) app = AMDGPUStats(watch_css=True)
app.run() app.run()
else: else:
sys.exit('Could not find an AMD GPU, exiting.') sys.exit('Could not find an AMD GPU, exiting.')