Ejemplo n.º 1
0
    def addActions(self):
        closeAction = QAction('退出',
                              self.systemTray,
                              triggered=self.systemTray.parent.close)

        self.systemTray.addAction(closeAction)
Ejemplo n.º 2
0
 def setContextMenu(self):
     self.actionDownloadSong = QAction('下载', self)
     self.actionDownloadSong.triggered.connect(self.downloadSong)
Ejemplo n.º 3
0
    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)