示例#1
0
    def do_matches_filters(self):
        filters = self.app.data.load_matches_filters()
        remove_widget_children(self.matches_filters)

        for filter_name in filters:
            self.do_filter_item(filter_name)
            yield True

        run_generator(self.update_matches_filters)
示例#2
0
    def update_matches_widgets(self):
        if self.matches_filters.get_children():
            run_generator(self.update_matches_filters)

        if self.matches_list.get_children():
            run_generator(self.update_matches_list)
示例#3
0
    def do_matches_widgets(self):
        if not self.matches_filters.get_children():
            run_generator(self.do_matches_filters)

        if not self.matches_list.get_children():
            run_generator(self.do_matches_list)
示例#4
0
    def update_channels_widgets(self):
        if self.channels_filters.get_children():
            run_generator(self.update_channels_filters)

        if self.channels_list.get_children():
            run_generator(self.update_channels_list)
示例#5
0
    def do_channels_widgets(self):
        if not self.channels_filters.get_children():
            run_generator(self.do_channels_filters)

        if not self.channels_list.get_children():
            run_generator(self.do_channels_list)