Merge pull request #1045 from ixjlyons/fix-525
Raise AttributeError in __getattr__
This commit is contained in:
commit
3ae58a065e
@ -45,10 +45,7 @@ class TabWindow(QtGui.QMainWindow):
|
|||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
if hasattr(self.cw, attr):
|
|
||||||
return getattr(self.cw, attr)
|
return getattr(self.cw, attr)
|
||||||
else:
|
|
||||||
raise NameError(attr)
|
|
||||||
|
|
||||||
|
|
||||||
class PlotWindow(PlotWidget):
|
class PlotWindow(PlotWidget):
|
||||||
|
Loading…
Reference in New Issue
Block a user