Salome HOME
style: black format
[tools/sat.git] / data / templates / PythonComponent / src / View / GraphicsRectItem.py
1 from qtsalome import *
2
3
4 class GraphicsRectItem(QGraphicsRectItem):
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
16 pass