26 lines
508 B
Python
26 lines
508 B
Python
|
|
|
|
from controller.MainController import MainController
|
|
|
|
|
|
class HomeController:
|
|
"""
|
|
Controller - HomeController
|
|
|
|
desc...
|
|
"""
|
|
# Variables
|
|
main_controller = None
|
|
view = None
|
|
|
|
# Constructor
|
|
def __init__(self, controller: MainController) -> None:
|
|
self.main_controller = controller
|
|
|
|
def set_view(self, view) -> None:
|
|
"""
|
|
[function for view]
|
|
|
|
:view: -> The view that this controller manage.
|
|
"""
|
|
self.view = view |