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