bugfix in ViewBox.clear
This commit is contained in:
parent
1b17bc6adb
commit
fa354ea4a3
@ -295,7 +295,7 @@ class ViewBox(GraphicsWidget):
|
|||||||
for i in self.addedItems[:]:
|
for i in self.addedItems[:]:
|
||||||
self.removeItem(i)
|
self.removeItem(i)
|
||||||
for ch in self.childGroup.childItems():
|
for ch in self.childGroup.childItems():
|
||||||
ch.setParent(None)
|
ch.setParentItem(None)
|
||||||
|
|
||||||
def resizeEvent(self, ev):
|
def resizeEvent(self, ev):
|
||||||
#self.setRange(self.range, padding=0)
|
#self.setRange(self.range, padding=0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user