This repository has been archived on 2023-11-29. You can view files and clone it, but cannot push or open issues or pull requests.
WebPicDownloader/controller/MainController.py

37 lines
864 B
Python
Raw Normal View History

class MainController:
"""
2022-08-30 21:12:04 +02:00
Controller - MainController
desc...
2022-08-30 21:12:04 +02:00
@author Jérémi Nihart / EndMove
@link https://git.endmove.eu/EndMove/WebPicDownloader
@version 1.0.0
@since 2022-08-30
"""
# Variables
2022-08-30 13:51:50 +02:00
__view = None
# Constructor
def __init__(self) -> None:
pass
2022-08-30 21:12:04 +02:00
# START View methods
def set_view(self, view) -> None:
"""
2022-08-30 21:12:04 +02:00
[function for view]
2022-08-30 13:51:50 +02:00
2022-08-30 21:12:04 +02:00
:view: -> The view that this controller manage.
"""
2022-08-30 21:12:04 +02:00
self.__view = view
# END view methods
2022-08-30 21:12:04 +02:00
# START Controller methods
def change_frame(self, frame) -> None:
"""
2022-08-30 21:12:04 +02:00
[function for controller]
2022-08-30 13:51:50 +02:00
2022-08-30 21:12:04 +02:00
:frame: -> The frame we want to display on the window instead of the current frame.
"""
2022-08-30 21:12:04 +02:00
self.__view.show_frame(frame)
# END Controller methods