mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-30 06:30:37 -08:00
22 lines
795 B
Python
22 lines
795 B
Python
|
|
from inspect import isgenerator
|
|
from View import MyListScreenView
|
|
from Model import MyListScreenModel
|
|
from View.components.media_card.media_card import MediaCardsContainer
|
|
from Utility import show_notification
|
|
|
|
class MyListScreenController:
|
|
"""
|
|
The `MainScreenController` 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.
|
|
"""
|
|
|
|
def __init__(self, model:MyListScreenModel):
|
|
self.model = model # Model.main_screen.MyListScreenModel
|
|
self.view = MyListScreenView(controller=self, model=self.model)
|
|
# self.populate_home_screen()
|
|
def get_view(self) -> MyListScreenView:
|
|
return self.view
|