Reset currentRow and currentCol on clear (#1076)
This commit is contained in:
parent
60c760a2e0
commit
267a0af8e7
@ -167,6 +167,8 @@ class GraphicsLayout(GraphicsWidget):
|
||||
def clear(self):
|
||||
for i in list(self.items.keys()):
|
||||
self.removeItem(i)
|
||||
self.currentRow = 0
|
||||
self.currentCol = 0
|
||||
|
||||
def setContentsMargins(self, *args):
|
||||
# Wrap calls to layout. This should happen automatically, but there
|
||||
|
Loading…
Reference in New Issue
Block a user