Enable contents labels on q for "query"
parent
8b966cd7e4
commit
830ef90721
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue