From 25ec5faaefc7a065238a53f07715ea576dfdf71a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 26 Jan 2021 11:28:24 -0500 Subject: [PATCH] Drop removed show_label kwarg --- piker/ui/_chart.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index 6696622d..55601786 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -995,7 +995,8 @@ async def _async_main( if resp in ('dark_submitted', 'broker_submitted'): # show line label once order is live - order_mode.on_submit(oid) + line = order_mode.on_submit(oid) + # await tractor.breakpoint() # resp to 'cancel' request or error condition # for action request @@ -1017,7 +1018,7 @@ async def _async_main( price=msg['trigger_price'], arrow_index=get_index(time.time()) ) - await order_mode.on_exec(oid, msg) + line = await order_mode.on_exec(oid, msg) # response to completed 'action' request for buy/sell elif resp in ('broker_executed',): @@ -1354,10 +1355,10 @@ async def update_signals( # add moveable over-[sold/bought] lines # and labels only for the 70/30 lines - level_line(chart, 20, show_label=False) + l = level_line(chart, 20) level_line(chart, 30, orient_v='top') level_line(chart, 70, orient_v='bottom') - level_line(chart, 80, orient_v='top', show_label=False) + l = level_line(chart, 80, orient_v='top') chart._set_yrange()