def initUI(self): self.importErrors = ImportErrorsTable() tracksInError = content.getTracks() self.importErrors.setTracks(tracksInError) mainLayout = QtGui.QVBoxLayout() mainLayout.addWidget(self.importErrors) self.setLayout(mainLayout)
def test(): import time import content as content tracks = content.getTracks() player = RemotePlayer(qapp) player.playTrack(tracks[1]) player.queueTrack(tracks[0]) assert player.currentlyPlayingTrack() is tracks[1] time.sleep(5) player.playNextTrack() assert player.currentlyPlayingTrack() is tracks[0] sys.exit(qapp.exec_())
def __init__(self, parent = None): super(DefaultMusicCollectionView, self).__init__(parent) self.tracks = content.getTracks() self.initUI() self.bindEvents()