…using m_label variable name and self.m_label?
What does self. do?
I’ve only started going thru this today:
…using m_label variable name and self.m_label?
What does self. do?
I’ve only started going thru this today:
yeah that link was junk…
Thanks. Discourse messes the link up, but I duckduckgo’ed.
https://micropyramid.com/blog/understand-self-and-__init__-method-in-python-class/
self.m_label
makes it an instance variable.
So, if label names don’t get manipulated later on, there’s no reason to use self. on them, right?
I suppose so. But that will make it harder for you to access that label later on if you change your mind after all.
True. I promise, I won’t. But I think I grasped the idea. It makes the form class remember its variables.