def __init__(self, parent, graphic_view=None):
self.peak = []
super().__init__(parent)
self.scene = GridScene(parent=graphic_view)
self.scene.setBackgroundBrush(constants.BGCOLOR)
self.peak_item = self.scene.addPath(QPainterPath(),
QPen(constants.PEAK_COLOR, Qt.FlatCap)) # type: QGraphicsPathItem
评论列表
文章目录