Implemented audio album removal. An album selector has been created
This commit is contained in:
@@ -23,4 +23,7 @@ def show_error_code(code):
|
||||
return wx.MessageDialog(None, message, title, style=wx.ICON_ERROR).ShowModal()
|
||||
|
||||
def bad_authorisation():
|
||||
return wx.MessageDialog(None, _(u"authorisation failed. Your configuration will not be saved. Please close and open again the application for authorising your account. Make sure you have typed your credentials correctly."), _(u"Error"), style=wx.ICON_ERROR).ShowModal()
|
||||
return wx.MessageDialog(None, _(u"authorisation failed. Your configuration will not be saved. Please close and open again the application for authorising your account. Make sure you have typed your credentials correctly."), _(u"Error"), style=wx.ICON_ERROR).ShowModal()
|
||||
|
||||
def delete_audio_album():
|
||||
return wx.MessageDialog(None, _(u"Do you really want to delete this Album? this will be deleted from VK too."), _(u"Attention"), style=wx.ICON_QUESTION|wx.YES_NO).ShowModal()
|
||||
|
@@ -2,8 +2,8 @@
|
||||
import wx
|
||||
|
||||
class selectAlbum(wx.Dialog):
|
||||
def __init__(self, albums):
|
||||
super(selectAlbum, self).__init__(parent=None, title=_(u"Select the album where you will upload the photo"))
|
||||
def __init__(self, title, albums):
|
||||
super(selectAlbum, self).__init__(parent=None, title=title)
|
||||
panel = wx.Panel(self)
|
||||
self.lista = wx.ListBox(panel, -1, choices=albums)
|
||||
self.lista.SetFocus()
|
@@ -9,6 +9,9 @@ class mainWindow(wx.Frame):
|
||||
create = wx.Menu()
|
||||
self.audio_album = create.Append(wx.NewId(), _(u"Audio album"))
|
||||
app_.AppendMenu(wx.NewId(), _(u"Create"), create)
|
||||
delete = wx.Menu()
|
||||
self.delete_audio_album = delete.Append(wx.NewId(), _(u"Audio album"))
|
||||
app_.AppendMenu(wx.NewId(), _(u"Delete"), delete)
|
||||
self.settings_dialog = app_.Append(wx.NewId(), _(u"Preferences"))
|
||||
buffer = wx.Menu()
|
||||
search = wx.Menu()
|
||||
|
Reference in New Issue
Block a user