MNT: Call close() up the inheritance chain

This commit is contained in:
Eric Dill 2016-03-23 11:43:44 -04:00
parent 0ac914fae7
commit 1a22ce3c04
2 changed files with 3 additions and 2 deletions

View File

@ -165,7 +165,8 @@ class GraphicsView(QtGui.QGraphicsView):
self.sceneObj = None
self.closed = True
self.setViewport(None)
super(GraphicsView, self).close()
def useOpenGL(self, b=True):
if b:
if not HAVE_OPENGL:

View File

@ -69,7 +69,7 @@ class PlotWidget(GraphicsView):
#self.scene().clear()
#self.mPlotItem.close()
self.setParent(None)
GraphicsView.close(self)
super(PlotWidget, self).close()
def __getattr__(self, attr): ## implicitly wrap methods from plotItem
if hasattr(self.plotItem, attr):