MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / YesNoDialog

Function YesNoDialog

gui/utils/helpers_wxPython.py:4–7  ·  view source on GitHub ↗
(question='Are you sure you want to do this?', caption='Yes or no?')

Source from the content-addressed store, hash-verified

2
3
4def YesNoDialog(question='Are you sure you want to do this?', caption='Yes or no?'):
5 with wx.MessageDialog(None, question, caption, wx.YES_NO | wx.ICON_QUESTION) as dlg:
6 result = dlg.ShowModal() == wx.ID_YES
7 return result
8
9
10def HandleCtrlBackspace(textControl):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected