diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-12-18 20:23:04 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-12-18 20:23:04 -0500 |
| commit | ef45f4b7406ec0d7457ea9a6e879007f37dc64f8 (patch) | |
| tree | 9145e4ef427ba89bc58eacd0e8709482efc5cb96 /lib/gui/dialogs.py | |
| parent | 8f3c922011a5c39a6154863160ea8354a502ed42 (diff) | |
| parent | 3cfda3c0b949bd4ba1f00a99f285b029dcc975ee (diff) | |
Merge branch 'master' into lexelby/bugs
Diffstat (limited to 'lib/gui/dialogs.py')
| -rw-r--r-- | lib/gui/dialogs.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/gui/dialogs.py b/lib/gui/dialogs.py new file mode 100644 index 00000000..c09503b3 --- /dev/null +++ b/lib/gui/dialogs.py @@ -0,0 +1,14 @@ +import wx + + +def confirm_dialog(parent, question, caption='ink/stitch'): + dlg = wx.MessageDialog(parent, question, caption, wx.YES_NO | wx.ICON_QUESTION) + result = dlg.ShowModal() == wx.ID_YES + dlg.Destroy() + return result + + +def info_dialog(parent, message, caption='ink/stitch'): + dlg = wx.MessageDialog(parent, message, caption, wx.OK | wx.ICON_INFORMATION) + dlg.ShowModal() + dlg.Destroy() |
