doc and style: formatted the whole codebase to pep8 plus added documentation where necessary

This commit is contained in:
Benedict Xavier Wanyonyi
2024-05-30 15:43:45 +03:00
parent e526e31083
commit b94987dfd7
54 changed files with 555 additions and 346 deletions

View File

@@ -1,16 +1,16 @@
from inspect import isgenerator
from kivy.logger import Logger
from kivy.clock import Clock
# from kivy.clock import Clock
from kivy.utils import difference
from View import MyListScreenView
from Model import MyListScreenModel
from Utility import show_notification,user_data_helper
from Utility import user_data_helper
class MyListScreenController:
"""
The `MainScreenController` class represents a controller implementation.
The `MyListScreenController` class represents a controller implementation.
Coordinates work of the view with the model.
The controller implements the strategy pattern. The controller connects to
the view to control its actions.
@@ -20,6 +20,7 @@ class MyListScreenController:
self.model = model
self.view = MyListScreenView(controller=self, model=self.model)
self.requested_update_my_list_screen()
def get_view(self) -> MyListScreenView:
return self.view
@@ -33,5 +34,3 @@ class MyListScreenController:
for result_card in anime_cards:
result_card.screen = self.view
self.view.update_layout(result_card)