def window_set_status(key, name =''): for window in sublime.windows(): for view in window.views(): view.set_status('SideBar-'+key, name)