Allow border=False in GraphicsLayout
This commit is contained in:
parent
30bc13831d
commit
2899143e84
@ -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>`.
|
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):
|
def __init__(self, parent=None, border=None):
|
||||||
GraphicsWidget.__init__(self, parent)
|
GraphicsWidget.__init__(self, parent)
|
||||||
if border is True:
|
if border is True:
|
||||||
border = (100,100,100)
|
border = (100,100,100)
|
||||||
|
elif border is False:
|
||||||
|
border = None
|
||||||
self.border = border
|
self.border = border
|
||||||
self.layout = QtGui.QGraphicsGridLayout()
|
self.layout = QtGui.QGraphicsGridLayout()
|
||||||
self.setLayout(self.layout)
|
self.setLayout(self.layout)
|
||||||
|
Loading…
Reference in New Issue
Block a user