fixing multi frame switching
This commit is contained in:
@@ -2,5 +2,5 @@ from enum import Enum
|
||||
|
||||
|
||||
class Frames(Enum):
|
||||
Home = 1
|
||||
Info = 2
|
||||
Home = 1 # Home view
|
||||
Info = 2 # Info & copyright view
|
||||
@@ -1,4 +1,3 @@
|
||||
from controller.Frames import Frames
|
||||
|
||||
|
||||
class MainController:
|
||||
@@ -8,20 +7,24 @@ class MainController:
|
||||
desc...
|
||||
"""
|
||||
# Variables
|
||||
view = None
|
||||
__view = None
|
||||
|
||||
# Constructor
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
def change_frame(self, frame: Frames.value) -> None:
|
||||
def change_frame(self, frame) -> None:
|
||||
"""
|
||||
[function for controller]
|
||||
|
||||
:frame: -> The frame to be displayed on the screen.
|
||||
"""
|
||||
pass
|
||||
|
||||
def set_view(self, view) -> None:
|
||||
"""
|
||||
[function for view]
|
||||
|
||||
:view: -> The view that this controller manage.
|
||||
"""
|
||||
self.view = view
|
||||
self.__view = view
|
||||
Reference in New Issue
Block a user