1 from PyQt4.QtGui import *
2 from PyQt4.QtCore import *
4 class GraphicsRectItem( QGraphicsRectItem ) :
6 def __init__( self, x, y, w, h, index ) :
7 QGraphicsRectItem.__init__( self, x, y, w, h )
9 self.setFlag( self.ItemIsMovable, True )
10 self.setFlag( self.ItemIsSelectable, True )
13 def getIndex( self ) :