summaryrefslogtreecommitdiff
path: root/lib/gui/lettering/help_panel.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-05-29 14:38:17 +0200
committerGitHub <noreply@github.com>2024-05-29 14:38:17 +0200
commit1f57763e797b933d0616495a32051ec74ec516bd (patch)
treebcf3db627572205c4589f5c41b6add349e8c807a /lib/gui/lettering/help_panel.py
parent1f47f4762e48aba7dfe49e42e86de732ff366986 (diff)
add help tab to lettering (#2948)
Diffstat (limited to 'lib/gui/lettering/help_panel.py')
-rw-r--r--lib/gui/lettering/help_panel.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/lib/gui/lettering/help_panel.py b/lib/gui/lettering/help_panel.py
new file mode 100644
index 00000000..648da180
--- /dev/null
+++ b/lib/gui/lettering/help_panel.py
@@ -0,0 +1,51 @@
+# Authors: see git history
+#
+# Copyright (c) 2024 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
+import wx
+
+from ...i18n import _
+
+
+class LetteringHelpPanel(wx.Panel):
+ def __init__(self, parent):
+ wx.Panel.__init__(self, parent)
+ help_sizer = wx.BoxSizer(wx.VERTICAL)
+
+ help_text = wx.StaticText(
+ self,
+ wx.ID_ANY,
+ _("Add text to your design."),
+ style=wx.ALIGN_LEFT
+ )
+ help_text.Wrap(500)
+ help_sizer.Add(help_text, 0, wx.ALL, 8)
+
+ website_link = wx.adv.HyperlinkCtrl(
+ self,
+ wx.ID_ANY,
+ _("https://inkstitch.org/docs/lettering/#lettering-tool"),
+ _("https://inkstitch.org/docs/lettering/#lettering-tool")
+ )
+ website_link.Bind(wx.adv.EVT_HYPERLINK, self.on_link_clicked)
+ help_sizer.Add(website_link, 0, wx.ALL, 8)
+
+ help_sizer.Add((20, 20), 0, 0, 0)
+
+ website_info = wx.StaticText(self, wx.ID_ANY, _("A font library with full description and embroidered examples can be found on our website:"))
+ help_sizer.Add(website_info, 0, wx.ALL, 8)
+
+ fontlibrary_link = wx.adv.HyperlinkCtrl(
+ self,
+ wx.ID_ANY,
+ _("https://inkstitch.org/fonts/font-library/"),
+ _("https://inkstitch.org/fonts/font-library/")
+ )
+ fontlibrary_link.Bind(wx.adv.EVT_HYPERLINK, self.on_link_clicked)
+ help_sizer.Add(fontlibrary_link, 0, wx.ALL, 8)
+
+ self.SetSizer(help_sizer)
+
+ def on_link_clicked(self, event):
+ event.Skip()