Salome HOME
Mise à jour du template PythonComponent:
[tools/sat.git] / data / templates / PythonComponent / src / View / GraphicsRectItem.py
1 from qtsalome import *
2
3 class GraphicsRectItem( QGraphicsRectItem ) :
4
5    def __init__( self, x, y, w, h, index ) :
6        QGraphicsRectItem.__init__( self, x, y, w, h )
7        self._index = index
8        self.setFlag( self.ItemIsMovable, True )
9        self.setFlag( self.ItemIsSelectable, True )
10        pass
11
12    def getIndex( self ) :
13        return self._index
14
15 pass