You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been following this tutorial to make my side project and it has been very helpful. But the code if not self.win: in the "Open with" and single instancing section gave me an error AttributeError: 'App' object has no attribute 'win'.. My understanding is i should use hasattr() instead?
The text was updated successfully, but these errors were encountered:
In that example I added self.win = None to the applications init method. If you don't and try test for an attribute that hasn't yet been declared on the object you get that error. (I admit the way I formatted the tutorial there is a bit backward)
I have been following this tutorial to make my side project and it has been very helpful. But the code
if not self.win:
in the "Open with" and single instancing section gave me an errorAttributeError: 'App' object has no attribute 'win'.
. My understanding is i should usehasattr()
instead?The text was updated successfully, but these errors were encountered: