Creation Webpic script + start creating graphic interface
This commit is contained in:
6
controller/Frames.py
Normal file
6
controller/Frames.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class Frames(Enum):
|
||||
Home = 1
|
||||
Info = 2
|
||||
26
controller/HomeController.py
Normal file
26
controller/HomeController.py
Normal 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
|
||||
27
controller/MainController.py
Normal file
27
controller/MainController.py
Normal 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
|
||||
Reference in New Issue
Block a user