Add "active cursor" api to god widget

history_view
Tyler Goodlet 2022-09-06 14:23:39 -04:00
parent 416270ee6c
commit f070f9a984
1 changed files with 7 additions and 0 deletions

View File

@ -118,6 +118,7 @@ class GodWidget(QWidget):
self.hist_linked: Optional[LinkedSplits] = None
self.rt_linked: Optional[LinkedSplits] = None
self._active_cursor: Optional[Cursor] = None
# assigned in the startup func `_async_main()`
self._root_n: trio.Nursery = None
@ -306,6 +307,12 @@ class GodWidget(QWidget):
self._resizing = False
def get_cursor(self) -> Cursor:
c = self._active_cursor
assert c
return c
class ChartnPane(QFrame):
'''