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

ordermodepps_backup
Tyler Goodlet 2021-07-21 20:00:11 -04:00
parent 8df399b8c1
commit 5bd764e0e9
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