Jan-28-2018, 06:20 PM
One sets it to be a class attribute, the other doesn't. As
If there is no need to use it elsewhere however it shouldn't be a class attribute.
self.layout
is not used in any other functions or referenced anywhere else, and setLayout
was already called using it, it doesn't make a difference.If there is no need to use it elsewhere however it shouldn't be a class attribute.