Пример #1
0
    def set(self, songs):
        """Clear the model and add the passed songs"""

        print_d("Filling view model with %d songs." % len(songs))
        self.clear()
        self.__iter = None

        oldsong = self.last_current
        for iter_, song in izip(self.iter_append_many(songs), songs):
            if song is oldsong:
                self.__iter = iter_
Пример #2
0
    def set(self, songs):
        """Clear the model and add the passed songs"""

        print_d("Filling view model with %d songs." % len(songs))
        self.clear()
        self.__iter = None

        oldsong = self.last_current
        for iter_, song in izip(self.iter_append_many(songs), songs):
            if song is oldsong:
                self.__iter = iter_
Пример #3
0
    def set(self, songs):
        """Clear the model and add the passed songs"""

        print_d("Clearing model.")
        self.clear()
        self.__iter = None

        print_d("Setting %d songs." % len(songs))

        oldsong = self.last_current
        for iter_, song in izip(self.iter_append_many(songs), songs):
            if song is oldsong:
                self.__iter = iter_

        print_d("Done filling model.")
Пример #4
0
    def set(self, songs):
        """Clear the model and add the passed songs"""

        print_d("Clearing model.")
        self.clear()
        self.__iter = None

        print_d("Setting %d songs." % len(songs))

        oldsong = self.last_current
        for iter_, song in izip(self.iter_append_many(songs), songs):
            if song is oldsong:
                self.__iter = iter_

        print_d("Done filling model.")