Ejemplo n.º 1
0
 def create_dict_with_rosters(self, *args):
     conn = connectivity_status()
     if conn is True:
         self.rosters_reg = fetch_rosters_for_all()
     else:
         App.get_running_app().root.show_popup(conn)
         Clock.schedule_once(App.get_running_app().stop, 2)
Ejemplo n.º 2
0
 def call_retro_roster_screen():
     conn = connectivity_status()
     if conn is True:
         App.get_running_app().root.transition = FadeTransition(duration=.5)
         App.get_running_app().root.current = 'retro_roster'
     else:
         App.get_running_app().root.show_popup(conn)
Ejemplo n.º 3
0
 def call_standings_screen(*args):
     conn = connectivity_status()
     if conn is True:
         App.get_running_app().root.transition = FadeTransition(duration=.5)
         App.get_running_app().root.current = 'standings'
     else:
         App.get_running_app().root.show_popup(conn)
Ejemplo n.º 4
0
 def call_roster_screen(self, *args):
     conn = connectivity_status()
     if conn is True:
         if len(self.grid_teams.selected_roster) != 0:
             App.get_running_app().root.transition = FadeTransition(
                 duration=.5)
             App.get_running_app().root.current = 'roster'
         else:
             message = MessagePopup()
             message.notification.text = 'Roster\'s announcement is pending!'
             message.open()
             Clock.schedule_once(message.dismiss, 2)
     else:
         App.get_running_app().root.show_popup(conn)
Ejemplo n.º 5
0
 def call_select_competition_retro_screen(*args):
     conn = connectivity_status()
     if conn is True:
         App.get_running_app().root.current = 'retro_competition'
     else:
         App.get_running_app().root.show_popup(conn)