@staticmethod
PYL-R0201 49 for text in self.ez_texts:
50 text.create_text()
51
52 def complex_button_content( 53 self, name: str, x: int, y: int, width: int, height: int
54 ) -> None:
55 # Draw the content of the complex button
44 for textField in self.ez_textFields:
45 textField.create_text_field()
46
47 def update(self): 48 EZ.update()
49
50 def run(self):
49 for text in self.ez_texts:
50 text.create_text()
51
52 def complex_button_content( 53 self, name: str, x: int, y: int, width: int, height: int
54 ) -> None:
55 # Draw the content of the complex button
44 for textField in self.ez_textFields:
45 textField.create_text_field()
46
47 def update(self): 48 EZ.update()
49
50 def run(self):
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.