Added attachment removal in dialog

This commit is contained in:
2016-04-25 05:26:55 -05:00
parent 0daa4fa14f
commit eddb4520bc
2 changed files with 16 additions and 1 deletions

View File

@@ -15,6 +15,8 @@ class attachDialog(widgetUtils.BaseDialog):
sizer.Add(box, 0, wx.ALL, 5)
static = wx.StaticBox(panel, label=_(u"Add attachments"))
self.photo = wx.Button(panel, wx.NewId(), _(u"&Photo"))
self.remove = wx.Button(panel, wx.NewId(), _(u"Remove attachment"))
self.remove.Enable(False)
btnsizer = wx.StaticBoxSizer(static, wx.HORIZONTAL)
btnsizer.Add(self.photo, 0, wx.ALL, 5)
sizer.Add(btnsizer, 0, wx.ALL, 5)