graphs.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:Laborejo 作者: hilbrichtsoftware 项目源码 文件源码
def __init__(self, parentGuiTrack, parentDataTrackId):
        super().__init__(0, 0, 0, 0)
        self.setAcceptHoverEvents(True)
        #self.setFlags(QtWidgets.QGraphicsItem.ItemIsMovable|QtWidgets.QGraphicsItem.ItemSendsGeometryChanges|QtWidgets.QGraphicsItem.ItemIsFocusable|QtWidgets.QGraphicsItem.ItemIgnoresParentOpacity)
        self.setFlags(QtWidgets.QGraphicsItem.ItemIsFocusable|QtWidgets.QGraphicsItem.ItemIgnoresParentOpacity)
        #self.setBrush(QtCore.Qt.red) #debug
        self.setPen(QtGui.QPen(QtCore.Qt.transparent))

        self.parentDataTrackId = parentDataTrackId
        self.parentGuiTrack = parentGuiTrack
        self.userItems = []
        self.interpolatedItems = []
        self.other = []
        self.blockListCache = [] #backend dictExport items. updated through self.updateGraphBlockTrack
        self.blockdictCache = {} #blockId:guiBlock  updated through self.updateGraphBlockTrack
        self.transparentBlockHandles = [] #transparentBlockHandles in correct order. updated through self.updateGraphBlockTrack
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号