def use_theme ( theme ) : global current current = theme import scene if scene . current is not None : scene . current . stylize ( )
how to have theme in python program
Make the given theme current .
def use_theme(theme):
    """Make the given theme current.

    There are two included themes: light_theme, dark_theme.
    """
    global current
    current = theme
    import scene
    if scene.current is not None:
        scene.current.stylize()