class Grid(QFrame):
def generate(self):
self.pen = False
self.tgDig = False
self.rwDig = False
I'm not sure how this works.
The generate
method is defined with self
as a parameter and I understand that all methods must have a special first parameter, usually called self
but I don't understand how the self
invokes pen
or tgDig
or rwDig
since they don't exist anywhere else?
It's using PyQt QFrame if that helps.