tui: restore PascalCase class name
This commit is contained in:
parent
0bfca03f98
commit
4dd98e3a16
1 changed files with 3 additions and 3 deletions
|
@ -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.')
|
||||||
|
|
Reference in a new issue