From cb102f692c09c34cb4127a4d0a2f37856f43dd8e Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 16 May 2021 20:53:51 -0400 Subject: [PATCH] Top level widget `.focus()` --- piker/ui/_interaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index 1f543c3e..05adfbcd 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -188,7 +188,7 @@ class SelectRect(QtGui.QGraphicsRectItem): self._abs_top_right = label_anchor self._label_proxy.setPos(self.vb.mapFromView(label_anchor)) - self._label.show() + # self._label.show() def clear(self): """Clear the selection box from view. @@ -762,7 +762,7 @@ class ChartView(ViewBox): # ctlr-l for "lookup" -> open search / lists if ctrl and key == QtCore.Qt.Key_L: search = self._chart._lc.chart_space.search - search.bar.focus() + search.focus() # esc if key == QtCore.Qt.Key_Escape or (ctrl and key == QtCore.Qt.Key_C):