def goToParty(source, userId, index, ui_data): from party import PartyUI source.destination = PartyUI(userId, index, ui_data) navigate(source) print("Clicked index: %d" % index)
def goToAnnouncements(source, userId, ui_data): from announcement import AnnouncementUI source.destination = AnnouncementUI(userId, ui_data) navigate(source)
def goToContestant(source, userId, index, ui_data): from contestant import ContestantUI source.destination = ContestantUI(userId, index, ui_data) navigate(source) print("Clicked index: %d" % index)
def goToVote(source, userId, ui_data): from vote import VoteUI source.destination = VoteUI(userId, ui_data) navigate(source)
def goToLogin(source): from login import LoginUI source.destination = LoginUI() navigate(source) print("Login")
def goToWinner(source, userId, name, party, percentage): from winner import WinnerUI source.destination = WinnerUI(userId, name, party, percentage) navigate(source)
def goToRegister(source): from register import RegisterUI source.destination = RegisterUI() navigate(source) print("Register")
def goToMain(source, userId): from main import MainUI source.destination = MainUI(userId) navigate(source) print("Login")