Enable contents labels on q for "query"

asyncify_input_modes
Tyler Goodlet 2021-06-22 08:18:18 -04:00
parent 8b966cd7e4
commit 830ef90721
1 changed files with 5 additions and 1 deletions

View File

@ -333,9 +333,13 @@ class Cursor(pg.GraphicsObject):
def in_query_mode(self, value: bool) -> None: def in_query_mode(self, value: bool) -> None:
if self._in_query_mode and not value: if self._in_query_mode and not value:
# edge trigger hide all labels # edge trigger "off" hide all labels
self.contents_labels.hide() self.contents_labels.hide()
elif not self._in_query_mode and value:
# edge trigger "on" hide all labels
self.contents_labels.update_labels(self._datum_xy[0])
self._in_query_mode = value self._in_query_mode = value
def add_hovered( def add_hovered(