Add delete buttons

This commit is contained in:
Ebag333
2017-04-10 10:53:36 -07:00
committed by blitzmann
parent 50e604f412
commit e245891cb4
2 changed files with 62 additions and 24 deletions

View File

@@ -0,0 +1,8 @@
import wx
def YesNoDialog(question=u'Are you sure you want to do this?', caption=u'Yes or no?'):
dlg = wx.MessageDialog(None, question, caption, wx.YES_NO | wx.ICON_QUESTION)
result = dlg.ShowModal() == wx.ID_YES
dlg.Destroy()
return result