From f2f00dcc52bee467101a395e1fbf5b89b46b4a1e Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 7 Apr 2022 14:15:18 -0400 Subject: [PATCH] Drop `._ic` debugging prints --- piker/ui/_interaction.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index c6411caf..4872f595 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -393,6 +393,11 @@ class ChartView(ViewBox): def start_ic( self, ) -> None: + ''' + Signal the beginning of a click-drag interaction + to any interested task waiters. + + ''' if self._ic is None: self.chart.pause_all_feeds() self._ic = trio.Event() @@ -400,13 +405,13 @@ class ChartView(ViewBox): def signal_ic( self, *args, - # ev = None, - ) -> None: - if args: - print(f'range change dun: {args}') - else: - print('proxy called') + ) -> None: + ''' + Signal the end of a click-drag interaction + to any waiters. + + ''' if self._ic: self._ic.set() self._ic = None @@ -674,7 +679,6 @@ class ChartView(ViewBox): self.sigRangeChangedManually.emit(self.state['mouseEnabled']) if ev.isFinish(): - print('DRAG FINISH') self.signal_ic() # self._ic.set() # self._ic = None