Add `GodWidget.iter_linked()` interator over linked split charts
parent
8e07fda88f
commit
271e378ce3
|
@ -19,7 +19,11 @@ High level chart-widget apis.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from typing import Optional, TYPE_CHECKING
|
from typing import (
|
||||||
|
Iterator,
|
||||||
|
Optional,
|
||||||
|
TYPE_CHECKING,
|
||||||
|
)
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets
|
from PyQt5 import QtCore, QtWidgets
|
||||||
from PyQt5.QtCore import (
|
from PyQt5.QtCore import (
|
||||||
|
@ -308,10 +312,11 @@ class GodWidget(QWidget):
|
||||||
self._resizing = False
|
self._resizing = False
|
||||||
|
|
||||||
def get_cursor(self) -> Cursor:
|
def get_cursor(self) -> Cursor:
|
||||||
c = self._active_cursor
|
return self._active_cursor
|
||||||
assert c
|
|
||||||
return c
|
|
||||||
|
|
||||||
|
def iter_linked(self) -> Iterator[LinkedSplits]:
|
||||||
|
for linked in [self.hist_linked, self.rt_linked]:
|
||||||
|
yield linked
|
||||||
|
|
||||||
|
|
||||||
class ChartnPane(QFrame):
|
class ChartnPane(QFrame):
|
||||||
|
|
Loading…
Reference in New Issue