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