Drop lingering prints
parent
5a970dad72
commit
a8a3f098cf
|
@ -90,16 +90,11 @@ class LineDot(pg.CurvePoint):
|
||||||
self,
|
self,
|
||||||
ev: QtCore.QEvent,
|
ev: QtCore.QEvent,
|
||||||
) -> None:
|
) -> None:
|
||||||
# print((ev, type(ev)))
|
|
||||||
if not isinstance(
|
if not isinstance(
|
||||||
ev, QtCore.QDynamicPropertyChangeEvent
|
ev, QtCore.QDynamicPropertyChangeEvent
|
||||||
) or self.curve() is None:
|
) or self.curve() is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# if ev.propertyName() == 'index':
|
|
||||||
# print(ev)
|
|
||||||
# # self.setProperty
|
|
||||||
|
|
||||||
(x, y) = self.curve().getData()
|
(x, y) = self.curve().getData()
|
||||||
index = self.property('index')
|
index = self.property('index')
|
||||||
# first = self._plot._ohlc[0]['index']
|
# first = self._plot._ohlc[0]['index']
|
||||||
|
@ -172,8 +167,6 @@ class ContentsLabel(pg.LabelItem):
|
||||||
if inspect.isfunction(margins[1]):
|
if inspect.isfunction(margins[1]):
|
||||||
margins = margins[0], ydim(anchor_font_size)
|
margins = margins[0], ydim(anchor_font_size)
|
||||||
|
|
||||||
print(f'margins: {margins}')
|
|
||||||
|
|
||||||
self.anchor(itemPos=index, parentPos=index, offset=margins)
|
self.anchor(itemPos=index, parentPos=index, offset=margins)
|
||||||
|
|
||||||
def update_from_ohlc(
|
def update_from_ohlc(
|
||||||
|
@ -403,7 +396,6 @@ class Cursor(pg.GraphicsObject):
|
||||||
|
|
||||||
# update all trackers
|
# update all trackers
|
||||||
for item in self._trackers:
|
for item in self._trackers:
|
||||||
# print(f'setting {item} with {(ix, y)}')
|
|
||||||
item.on_tracked_source(ix, iy)
|
item.on_tracked_source(ix, iy)
|
||||||
|
|
||||||
if ix != last_ix:
|
if ix != last_ix:
|
||||||
|
|
Loading…
Reference in New Issue