[Mod] update cursor info pos after new bar updated

This commit is contained in:
vn.py 2019-07-18 16:55:12 +08:00
parent a6bd9f6ce0
commit 9d79112dd7
2 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ if __name__ == "__main__":
timer = QtCore.QTimer() timer = QtCore.QTimer()
timer.timeout.connect(update_bar) timer.timeout.connect(update_bar)
# timer.start(100) timer.start(100)
widget.show() widget.show()
app.exec_() app.exec_()

View File

@ -284,6 +284,7 @@ class ChartWidget(pg.PlotWidget):
""" """
self._right_ix = self._manager.get_count() self._right_ix = self._manager.get_count()
self._update_x_range() self._update_x_range()
self._cursor.update_info()
class ChartCursor(QtCore.QObject): class ChartCursor(QtCore.QObject):