예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 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)
예제 #6
0
    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
예제 #7
0
    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