visualizerGraphicItem.py 文件源码

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

项目:asprilo 作者: potassco 项目源码 文件源码
def __init__(self, ID = 0, x = 0, y = 0):
        QGraphicsItem.__init__(self)
        visualizerItem.VisualizerItem.__init__(self)
        self._kind_name = ''
        self._id = ID
        self._model = None
        self._position = (x, y) 
        self._start_position = (x, y)
        self._dragged = None
        self._enable_drag = False
        self._graphics_item = None
        self._text = None
        self._actions = []
        self._colors = [QColor(0,0,0)]
        self._display_mode = 0

        self.setAcceptedMouseButtons(Qt.MouseButtons(1))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号