Add `.view` property, throttle to 50Hz by default

fsp_feeds
Tyler Goodlet 2021-07-21 20:00:11 -04:00
parent 20a8045127
commit 71eef1b7fd
1 changed files with 5 additions and 1 deletions

View File

@ -535,6 +535,10 @@ class ChartPlotWidget(pg.PlotWidget):
# for when the splitter(s) are resized
self._vb.sigResized.connect(self._set_yrange)
@property
def view(self) -> ChartView:
return self._vb
def focus(self) -> None:
# self.setFocus()
self._vb.setFocus()
@ -924,7 +928,7 @@ class ChartPlotWidget(pg.PlotWidget):
self.scene().leaveEvent(ev)
_clear_throttle_rate: int = 60 # Hz
_clear_throttle_rate: int = 50 # Hz
_book_throttle_rate: int = 16 # Hz