1
0
Fork 0
mirror of https://github.com/Athemis/PyDSF.git synced 2025-04-06 23:16:03 +00:00
pyDSF/pyqtgraph/graphicsItems/ItemGroup.py

23 lines
546 B
Python

from ..Qt import QtGui, QtCore
from .GraphicsObject import GraphicsObject
__all__ = ['ItemGroup']
class ItemGroup(GraphicsObject):
"""
Replacement for QGraphicsItemGroup
"""
def __init__(self, *args):
GraphicsObject.__init__(self, *args)
if hasattr(self, "ItemHasNoContents"):
self.setFlag(self.ItemHasNoContents)
def boundingRect(self):
return QtCore.QRectF()
def paint(self, *args):
pass
def addItem(self, item):
item.setParentItem(self)