From afd0781b622ed3bd52bebab7083dad97d6856d5b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 15 Dec 2023 13:57:10 -0500 Subject: [PATCH] Add (shm) abs index to `ContextLabel` --- piker/ui/_cursor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/piker/ui/_cursor.py b/piker/ui/_cursor.py index f69f503a..c8480524 100644 --- a/piker/ui/_cursor.py +++ b/piker/ui/_cursor.py @@ -207,9 +207,10 @@ class ContentsLabel(pg.LabelItem): # this being "html" is the dumbest shit :eyeroll: self.setText( - "i:{index}
" + "i_arr:{index}
" # NB: these fields must be indexed in the correct order via # the slice syntax below. + "i_shm:{}
" "epoch:{}
" "O:{}
" "H:{}
" @@ -219,6 +220,7 @@ class ContentsLabel(pg.LabelItem): # "wap:{}".format( *array[ix][ [ + 'index', 'time', 'open', 'high',