From e8d7709358c48b6e6ac653c4d90ea748eb55e664 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 4 Feb 2022 17:02:57 -0500 Subject: [PATCH] Drop notification display time to piker seconds worth --- piker/ui/order_mode.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 6795f384..755e72f3 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -433,9 +433,12 @@ class OrderMode: [ 'notify-send', '-u', 'normal', - '-t', '10000', + '-t', '1616', 'piker', - f'alert: {msg}', + + # TODO: add in standard fill/exec info that maybe we + # pack in a broker independent way? + f'{msg["resp"]}: {msg["trigger_price"]}', ], ) log.runtime(result) @@ -666,7 +669,7 @@ async def open_order_mode( ) # vbox.setAlignment(feed_label, Qt.AlignBottom) # vbox.setAlignment(Qt.AlignBottom) - blank_h = chart.height() - ( + _ = chart.height() - ( form.height() + form.fill_bar.height() # feed_label.height()