Braille meter and axis captions: two new shared chart widgets
meter() is the one horizontal proportion bar (two fill steps per cell, full-height tally or slim-on-a-track gauge); the SNR bar now draws through it. axis_caption() fills a timeline's caption with as many intermediate marks as the width fits, instead of only its two ends. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ffa834182b
commit
f9411bfc9b
3 files changed
+134
-26
No files matched your search
@@ -13,10 +13,14 @@ from datetime import timedelta
|
||||
import pytest
|
||||
|
||||
from meshterm.core.models import Hop, TraceResult, TraceStats, TxLevelResult, TxOptResult, utcnow
|
||||
from meshterm.ui.braillechart import _METER_SLIM
|
||||
from meshterm.ui.theme import snr_style
|
||||
from meshterm.ui.trace_screen import _BAR_FULL, _BAR_HALF, _BAR_WIDTH, TraceScreen, snr_bar
|
||||
from meshterm.ui.trace_screen import _BAR_WIDTH, TraceScreen, snr_bar
|
||||
from meshterm.ui.tx_screen import TxSweepScreen
|
||||
|
||||
# The slim meter's fill glyphs (the SNR bar draws through the shared braille meter).
|
||||
_BAR_FULL, _BAR_HALF = _METER_SLIM
|
||||
|
||||
|
||||
class _FakeSession:
|
||||
"""The session capabilities the screens use directly: repaints and the dialog stack."""
|
||||
|
||||
Reference in new issue
Block a user