コード例 #1
0
ファイル: songmodel.py プロジェクト: ZDBioHazard/quodlibet
    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
ファイル: songmodel.py プロジェクト: faubi/quodlibet
    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
ファイル: songmodel.py プロジェクト: faubiguy/quodlibet
    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.")