From 6fa8958acf95bc2faba0ecd343ebdca4ace0f733 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 11 Sep 2021 10:56:03 -0400 Subject: [PATCH] Drop extra method --- piker/ui/_position.py | 14 +------------- piker/ui/order_mode.py | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/piker/ui/_position.py b/piker/ui/_position.py index fb6b143c..db250625 100644 --- a/piker/ui/_position.py +++ b/piker/ui/_position.py @@ -62,19 +62,6 @@ class SettingsPane: # encompasing high level namespace order_mode: Optional['OrderMode'] = None # typing: ignore # noqa - def on_selection_change( - self, - - text: str, - key: str, - - ) -> None: - '''Called on any order pane drop down selection change. - - ''' - log.info(f'selection input: {text}') - self.on_ui_settings_change(key, text) - def on_ui_settings_change( self, @@ -85,6 +72,7 @@ class SettingsPane: '''Called on any order pane edit field value change. ''' + log.info(f'selection input: {value}') mode = self.order_mode if key == 'account': diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 83b193ba..0460638a 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -733,7 +733,7 @@ async def open_order_mode( w.currentTextChanged.connect( partial( - order_pane.on_selection_change, + order_pane.on_ui_settings_change, key=key, ) )