Skip to content

Commit

Permalink
fix the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
danghoangnhan committed Nov 29, 2023
1 parent 4d678cb commit 347c0e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,32 @@ def start(self):
def navigate_to_setting_screen(self):
logging.info(" Open the settings screen")
self.close_all()
self.setting_screen = SettingScreen(navigator=self,screen_height=self.screen_height,screen_width=self.screen_width)
self.setting_screen.show()


def navigate_to_start_screen(self):
self.close_all()
self.start_screen = StartScreen(navigator=self,screen_height=self.screen_height,screen_width=self.screen_width)
self.start_screen.show()

def navigate_to_user_info_screen(self):
logging.info("Open the user information screen")
self.close_all()
self.user_info_screen.show()

self.user_info_screen= UserInformationScreen(navigator=self,screen_height=self.screen_height,screen_width=self.screen_width)
self.user_info_screen.show()

def navigate_to_end_screen(self):
logging.info("Open the user end screen")
self.close_all()
self.end_screen= EndScreen(navigator=self,screen_height=self.screen_height,screen_width=self.screen_width,result=None)
self.end_screen.show()

def navigate_to_test_screen(self):
logging.info("Open the test screen")
self.close_all()
self.test_screen = TestScreen(navigator=self,screen_height=self.screen_height,screen_width=self.screen_width)

self.test_screen.show()

def close_all(self):
Expand Down

0 comments on commit 347c0e8

Please sign in to comment.