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
56 if name == "btnSettings":
50 y: int,
51 width: int,
52 height: int,
53 text: str, 54 text_center: bool,
55 text_margin: list[int],
56 background_color: str,
20 self.screen_array = np.full((width, height, 3), [255, 255, 255], dtype=np.uint8)
21 self.popular_app_ui = PopularUI(self, self.application)
22
23 def run(self, from_return: bool = False):24 EZ.create_window(self.resolution[0], self.resolution[1], caption,
25 self.application.working_directory + "/Resources/Images/icon.png")
26 EZ.change_cursor(pygame.SYSTEM_CURSOR_ARROW)
20 self.screen_array = np.full((width, height, 3), [255, 255, 255], dtype=np.uint8)
21 self.export_app_ui = ExportUI(self.application)
22
23 def run(self, from_return: bool = False):24 EZ.create_window(self.resolution[0], self.resolution[1], caption,
25 self.application.working_directory + "/Resources/Images/icon.png")
26 EZ.change_cursor(pygame.SYSTEM_CURSOR_ARROW)
20 self.screen_array = np.full((width, height, 3), [255, 255, 255], dtype=np.uint8)
21 self.saved_app_ui = SavedUI(self, self.application)
22
23 def run(self, from_return: bool = False):24 EZ.create_window(self.resolution[0], self.resolution[1], caption,
25 self.application.working_directory + "/Resources/Images/icon.png")
26 EZ.change_cursor(pygame.SYSTEM_CURSOR_ARROW)
An unused argument can lead to confusions. It should be removed. If this variable is necessary, name the variable _
or start the name with unused
or _unused
.
def square(x, y=1):
return x * x
class MySubClass(MyClass):
def __init__(self, number):
self.value = 42 # argument `number` remains unused
def square(x):
return x * x
class MySubClass(MyClass):
def __init__(self, _):
self.value = 42