Reset currentRow and currentCol on clear (#1076)

This commit is contained in:
Paul Müller 2019-11-19 17:21:36 +01:00 committed by Ogi Moore
parent 60c760a2e0
commit 267a0af8e7

View File

@ -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