From 1e0280db10cbb987842648f78f37bb9acc827305 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 15 Dec 2018 20:21:41 -0500 Subject: basic lettering GUI (#351) --- lib/gui/dialogs.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/gui/dialogs.py (limited to 'lib/gui/dialogs.py') 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() -- cgit v1.2.3