Beispiel #1
0
 def __init__(self, **kwargs):
     Builder.load_file('AdminScreen.kv')
     PassCodeScreen.set_admin_events_screen(
         ADMIN_SCREEN_NAME
     )  # Specify screen name to transition to after correct password
     PassCodeScreen.set_transition_back_screen(
         MAIN_SCREEN_NAME
     )  # set screen name to transition to if "Back to Game is pressed"
     super(AdminScreen, self).__init__(**kwargs)
Beispiel #2
0
    def __init__(self, **kwargs):
        """
        Load the AdminScreen.kv file. Set the necessary names of the screens for the PassCodeScreen to transition to.
        Lastly super Screen's __init__
        :param kwargs: Normal kivy.uix.screenmanager.Screen attributes
        """
        Builder.load_file('AdminScreen.kv')

        PassCodeScreen.set_admin_events_screen(ADMIN_SCREEN_NAME)  # Specify screen name to transition to after correct password
        PassCodeScreen.set_transition_back_screen(MAIN_SCREEN_NAME)  # set screen name to transition to if "Back to Game is pressed"

        super(AdminScreen, self).__init__(**kwargs)
Beispiel #3
0
    def __init__(self, **kwargs):
        Builder.load_file('Farmyard.kv')

        PassCodeScreen.set_transition_back_screen(MAIN_SCREEN_NAME)

        super(Farmyard, self).__init__(**kwargs)