2012-03-01 21:55:32 -05:00
|
|
|
from pyqtgraph.Qt import QtGui
|
|
|
|
from pyqtgraph.graphicsItems.GraphicsLayout import GraphicsLayout
|
2012-05-11 18:05:41 -04:00
|
|
|
from .GraphicsView import GraphicsView
|
2012-03-01 21:55:32 -05:00
|
|
|
|
|
|
|
__all__ = ['GraphicsLayoutWidget']
|
|
|
|
class GraphicsLayoutWidget(GraphicsView):
|
|
|
|
def __init__(self, parent=None, **kargs):
|
|
|
|
GraphicsView.__init__(self, parent)
|
|
|
|
self.ci = GraphicsLayout(**kargs)
|
2012-03-23 02:42:02 -04:00
|
|
|
for n in ['nextRow', 'nextCol', 'nextColumn', 'addPlot', 'addViewBox', 'addItem', 'getItem', 'addLabel', 'addLayout']:
|
2012-03-01 21:55:32 -05:00
|
|
|
setattr(self, n, getattr(self.ci, n))
|
|
|
|
self.setCentralItem(self.ci)
|