Allow border=False in GraphicsLayout

This commit is contained in:
Jennifer Manriquez 2021-06-16 19:35:42 -05:00
parent 30bc13831d
commit 2899143e84

View File

@ -13,11 +13,12 @@ class GraphicsLayout(GraphicsWidget):
This is usually created automatically as part of a :class:`GraphicsWindow <pyqtgraph.GraphicsWindow>` or :class:`GraphicsLayoutWidget <pyqtgraph.GraphicsLayoutWidget>`.
"""
def __init__(self, parent=None, border=None):
GraphicsWidget.__init__(self, parent)
if border is True:
border = (100,100,100)
elif border is False:
border = None
self.border = border
self.layout = QtGui.QGraphicsGridLayout()
self.setLayout(self.layout)