Beispiel #1
0
    def do_channels_filters(self):
        filters = ['All Languages'] + self.app.data.load_languages()
        remove_widget_children(self.channels_filters)

        for filter_name in filters:
            filterbox = FilterBox(filter_name=filter_name)
            self.channels_filters.add(filterbox)
Beispiel #2
0
    def do_filter_item(self, filter_name):
        filterbox = FilterBox(filter_name=filter_name,
                              filter_all='All Competitions')
        self.matches_filters.add(filterbox)

        if not self.matches_filters.get_selected_row():
            self.matches_filters.select_row(filterbox)
Beispiel #3
0
    def do_filter_item(self, filter_name):
        filterbox = FilterBox(filter_name=filter_name)
        self.channels_filters.add(filterbox)

        if filter_name == 'All Languages':
            if not self.channels_filters.get_selected_row():
                self.channels_filters.select_row(filterbox)
Beispiel #4
0
    def do_matches_filters(self):
        filters = ['All Competitions'] + self.app.data.load_competitions(
            True, True)
        remove_widget_children(self.matches_filters)

        for filter_name in filters:
            filterbox = FilterBox(filter_name=filter_name)
            self.matches_filters.add(filterbox)