Creation Webpic script + start creating graphic interface

This commit is contained in:
2022-08-30 12:28:59 +02:00
parent c6062426e3
commit e85b021383
7 changed files with 325 additions and 0 deletions

6
controller/Frames.py Normal file
View File

@@ -0,0 +1,6 @@
from enum import Enum
class Frames(Enum):
Home = 1
Info = 2

View File

@@ -0,0 +1,26 @@
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

View File

@@ -0,0 +1,27 @@
from controller.Frames import Frames
class MainController:
"""
Controller - MainController
desc...
"""
# Variables
view = None
# Constructor
def __init__(self) -> None:
pass
def change_frame(self, frame: Frames.value) -> None:
"""
[function for controller]
"""
pass
def set_view(self, view) -> None:
"""
[function for view]
"""
self.view = view