Notify user of fully downloaded song with a system notification
This commit is contained in:
@@ -99,4 +99,8 @@ class mainWindow(wx.Frame):
|
||||
saveFileDialog = wx.FileDialog(self, _(u"Save this file"), "", filename, _(u"Audio Files(*.mp3)|*.mp3"), wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT)
|
||||
if saveFileDialog.ShowModal() == wx.ID_OK:
|
||||
return saveFileDialog.GetPath()
|
||||
saveFileDialog.Destroy()
|
||||
saveFileDialog.Destroy()
|
||||
|
||||
def notify(self, title, text):
|
||||
self.notification = wx.adv.NotificationMessage(title, text, parent=self)
|
||||
self.notification.Show()
|
Reference in New Issue
Block a user