diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-08-17 17:29:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-17 17:29:54 +0200 |
| commit | 300755c436ff2dfb9cdcb18aeb14cc368631b784 (patch) | |
| tree | 5dd5a1898724e2c70a30103250bd38f005f41561 /lib/extensions/lettering.py | |
| parent | 404c483cc7c220b2521ab06011bf612303ca2029 (diff) | |
add wxpython abort message (as alternative to stderr output) (#3145)
Diffstat (limited to 'lib/extensions/lettering.py')
| -rw-r--r-- | lib/extensions/lettering.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/extensions/lettering.py b/lib/extensions/lettering.py index 76821902..918c6001 100644 --- a/lib/extensions/lettering.py +++ b/lib/extensions/lettering.py @@ -9,6 +9,7 @@ import inkex import wx import wx.adv +from ..gui.abort_message import AbortMessageApp from ..gui.lettering import LetteringPanel from ..gui.simulator import SplitSimulatorWindow from ..i18n import _ @@ -41,7 +42,11 @@ class Lettering(CommandsExtension): groups.add(group) if len(groups) > 1: - inkex.errormsg(_("Please select only one block of text.")) + app = AbortMessageApp( + _("Please select only one block of text."), + _("https://inkstitch.org/docs/lettering/#lettering-tool") + ) + app.MainLoop() sys.exit(1) elif len(groups) == 0: return self.create_group() |
