def __init__(self, *args, **kargs): """ Extends QGraphicsWidget with several helpful methods and workarounds for PyQt bugs. Most of the extra functionality is inherited from GraphicsObjectSuperclass. """ QtGui.QGraphicsWidget.__init__(self, *args, **kargs) GraphicsItemMethods.__init__(self) GraphicsScene.registerObject(self) ## workaround for pyqt bug in graphicsscene.items()
def __init__(self, *args): QtGui.QGraphicsObject.__init__(self, *args) GraphicsItemMethods.__init__(self)