42 lines
976 B
Python
42 lines
976 B
Python
from controller.MainController import MainController
|
|
|
|
|
|
class InfoController:
|
|
"""
|
|
Controller - InfoController
|
|
|
|
desc...
|
|
|
|
@author Jérémi Nihart / EndMove
|
|
@link https://git.endmove.eu/EndMove/WebPicDownloader
|
|
@version 1.0.0
|
|
@since 2022-08-30
|
|
"""
|
|
# Variables
|
|
__main_controller = None
|
|
__view = None
|
|
|
|
# Constructor
|
|
def __init__(self, controller: MainController) -> None:
|
|
self.__main_controller = controller
|
|
|
|
# START View methods
|
|
def set_view(self, view) -> None:
|
|
"""
|
|
[function for view]
|
|
|
|
:view: -> The view that this controller manage.
|
|
"""
|
|
self.__view = view
|
|
# END View method
|
|
|
|
# START View events
|
|
def on_change_view(self, frame) -> None:
|
|
"""
|
|
[event function for view]
|
|
|
|
:frame: -> The frame we want to launch.
|
|
"""
|
|
self.__main_controller.change_frame(frame)
|
|
# END View events
|