Add delete buttons
This commit is contained in:
8
gui/utils/helpers_wxPython.py
Normal file
8
gui/utils/helpers_wxPython.py
Normal 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
|
||||
Reference in New Issue
Block a user