Merge pull request #1045 from ixjlyons/fix-525

Raise AttributeError in __getattr__
This commit is contained in:
Kenneth Lyons 2019-09-25 17:57:12 -07:00 committed by GitHub
commit 3ae58a065e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,10 +45,7 @@ class TabWindow(QtGui.QMainWindow):
self.show()
def __getattr__(self, attr):
if hasattr(self.cw, attr):
return getattr(self.cw, attr)
else:
raise NameError(attr)
return getattr(self.cw, attr)
class PlotWindow(PlotWidget):