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):
|
def clear(self):
|
||||||
for i in list(self.items.keys()):
|
for i in list(self.items.keys()):
|
||||||
self.removeItem(i)
|
self.removeItem(i)
|
||||||
|
self.currentRow = 0
|
||||||
|
self.currentCol = 0
|
||||||
|
|
||||||
def setContentsMargins(self, *args):
|
def setContentsMargins(self, *args):
|
||||||
# Wrap calls to layout. This should happen automatically, but there
|
# Wrap calls to layout. This should happen automatically, but there
|
||||||
|
Loading…
x
Reference in New Issue
Block a user