Beispiel #1
0
    def __init__(self, canvas, fName, ref):
        CellElement.__init__(self, ref, canvas, x=None, y=None)
        self.kind = CellElement.SVG

        self.__fName = fName
        QGraphicsSvgItem.__init__(self, self.__getPath(fName))
        self.__scale = 0
Beispiel #2
0
 def __init__(self, fName, ref):
     self.__fName = fName
     QGraphicsSvgItem.__init__(self, self.__getPath(fName))
     self.__scale = 0
     self.ref = ref
Beispiel #3
0
 def mouseDoubleClickEvent(self, event):
     """Handling double click events"""
     if self.ref.kind == CellElement.EXCEPT_MINIMIZED:
         return self.ref.mouseDoubleClickEvent(event)
     return QGraphicsSvgItem.mouseDoubleClickEvent(self, event)