MCPcopy Create free account
hub / github.com/QuantFans/quantdigger / draw_candles

Method draw_candles

quantdigger/backup/pyqt_kline/CandleWidget.py:456–464  ·  view source on GitHub ↗
(self, from_idx, to_idx)

Source from the content-addressed store, hash-verified

454 self.update()
455
456 def draw_candles(self, from_idx, to_idx):
457 self._curr_from_idx = from_idx
458 self._curr_to_idx = to_idx
459 self._curr_span = self._curr_to_idx - self._curr_from_idx + 1
460 #
461 self.draw_all_pixmaps()
462 self.update()
463 #
464 self.emit(SIGNAL("kLineSpanChanged()"))
465
466 def draw_average_line(self):
467 if not self._is_average_line_shown:

Callers 2

mouseMoveEventMethod · 0.95
change_spanMethod · 0.80

Calls 2

draw_all_pixmapsMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected