def addActions(self): closeAction = QAction('退出', self.systemTray, triggered=self.systemTray.parent.close) self.systemTray.addAction(closeAction)
def setContextMenu(self): self.actionDownloadSong = QAction('下载', self) self.actionDownloadSong.triggered.connect(self.downloadSong)
def setContextMenu(self): self.actionNextPlay = QAction('下一首播放', self) self.actionNextPlay.triggered.connect(self.addToNextPlay) self.actionDownloadSong = QAction('下载', self) self.actionDownloadSong.triggered.connect(self.downloadSong)
def setContextMenu(self): self.actionNextPlay = QAction('下一首播放', self) self.actionNextPlay.triggered.connect(self.addToNextPlay)