def _update_view_radios(self): view = RadiosView() self._stack.add(view) view.show() start_new_thread(view.populate, ()) self._stack.set_visible_child(view) self._stack.clean_old_views(view)
def _update_view_radios(self): """ Update current view with radios view """ view = RadiosView() view.populate() view.show() self._stack.add(view) self._stack.set_visible_child(view) self._stack.clean_old_views(view)
def __update_view_radios(self): """ Update current view with radios view """ from lollypop.view_radios import RadiosView self.__stop_current_view() view = RadiosView() view.populate() view.show() self.__stack.add(view) self.__stack.set_visible_child(view) self.__stack.clean_old_views(view)
def _get_view_radios(self): """ Get radios view @return RadiosView """ def load(): from lollypop.radios import Radios radios = Radios() return radios.get_ids() from lollypop.view_radios import RadiosView view = RadiosView() loader = Loader(target=load, view=view) loader.start() view.show() return view
def _get_view_radios(self): """ Get radios view @return RadiosView """ def load(): from lollypop.radios import Radios radios = Radios() return radios.get_ids() from lollypop.view_radios import RadiosView view_type = ViewType.SCROLLED if App().window.is_adaptive: view_type |= ViewType.MEDIUM view = RadiosView(view_type | self._view_type) loader = Loader(target=load, view=view) loader.start() view.show() return view