Example #1
0
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)
Example #2
0
def goToAnnouncements(source, userId, ui_data):
    from announcement import AnnouncementUI
    source.destination = AnnouncementUI(userId, ui_data)
    navigate(source)
Example #3
0
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)
Example #4
0
def goToVote(source, userId, ui_data):
    from vote import VoteUI
    source.destination = VoteUI(userId, ui_data)
    navigate(source)
Example #5
0
def goToLogin(source):
    from login import LoginUI
    source.destination = LoginUI()
    navigate(source)
    print("Login")
Example #6
0
def goToWinner(source, userId, name, party, percentage):
    from winner import WinnerUI
    source.destination = WinnerUI(userId, name, party, percentage)
    navigate(source)
Example #7
0
def goToRegister(source):
    from register import RegisterUI
    source.destination = RegisterUI()
    navigate(source)
    print("Register")
Example #8
0
def goToMain(source, userId):
    from main import MainUI
    source.destination = MainUI(userId)
    navigate(source)
    print("Login")