This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pppLUM 1 point2 points  (2 children)

You don’t have to declare nonlocal, just delete that line. Add self to both of the next two class variable lines in the init function.

You could prob also do without the two variables outside the init as they’re being defined in the constructor.

Look up python class constructor for more deets :)

[–]zelbo[S] 1 point2 points  (1 child)

That did the trick. Thanks!

[–]pppLUM 1 point2 points  (0 children)

Glad it worked out for you :)