Always hide contents labels at startup

ordermodepps_backup
Tyler Goodlet 2021-07-26 15:35:06 -04:00
parent 622da73c40
commit 457cc1a128
2 changed files with 7 additions and 9 deletions

View File

@ -1281,12 +1281,6 @@ async def run_fsp(
# static_yrange=(0, 100), # static_yrange=(0, 100),
) )
# display contents labels asap
chart.linked.cursor.contents_labels.update_labels(
len(shm.array) - 1,
# fsp_func_name
)
# XXX: ONLY for sub-chart fsps, overlays have their # XXX: ONLY for sub-chart fsps, overlays have their
# data looked up from the chart's internal array set. # data looked up from the chart's internal array set.
# TODO: we must get a data view api going STAT!! # TODO: we must get a data view api going STAT!!
@ -1710,10 +1704,14 @@ async def _async_main(
'account': { 'account': {
'key': '**account**:', 'key': '**account**:',
'type': 'select', 'type': 'select',
'default_value': ['margin'], 'default_value': [
'piker.paper',
# 'ib.margin',
# 'ib.paper',
],
}, },
'disti_policy': { 'disti_policy': {
'key': '**policy**:', 'key': '**entry policy**:',
'type': 'select', 'type': 'select',
'default_value': ['uniform'], 'default_value': ['uniform'],
}, },

View File

@ -278,7 +278,7 @@ class ContentsLabels:
self._labels.append( self._labels.append(
(chart, name, label, partial(update_func, label, name)) (chart, name, label, partial(update_func, label, name))
) )
# label.hide() label.hide()
return label return label