mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-09 11:45:02 -08:00
completed the basic ui and anilist module
This commit is contained in:
21
app/Controller/my_list_screen.py
Normal file
21
app/Controller/my_list_screen.py
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user