Exemplo n.º 1
0
def mobile_feed_tab_content(value):
    """Callback to change between news and twitter feed
    """
    if value == "mobile-twitter-tab":
        return twitter_feed()
    else:
        return news_feed()
Exemplo n.º 2
0
    def feed_tab_content(tab_value, country):
        """Callback for newsfeed
        """
        print(country)
        if tab_value == "twitter-tab":
            return twitter_feed(country)

        return news_feed(country)
Exemplo n.º 3
0
def feed_tab_content(tab_value, state):
    """Callback to change between news and twitter feed
    """
    # print(f"feed tab value {tab_value}")
    # print(f"feed tab state {state}")
    if tab_value == "twitter-tab":
        return twitter_feed(state)
    else:
        return news_feed(state)