Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Help for config dialog?
Help for config dialog?
Is there a standard way to implement a help button on a config dialog for plugins or actions?
Re: Help for config dialog?
I haven't looked at it in much detail, but it looks like it applies to all classes with config dialogs. Check out HeaderBox.py (in eg\classes).
It adds a help hyperlink if "more help is available", which looks like the item's description is more than one paragragh.
Brett
It adds a help hyperlink if "more help is available", which looks like the item's description is more than one paragragh.
Code: Select all
description = item.GetDescription().strip()
text = GetFirstParagraph(description)
...
hasAdditionalHelp = (description != text)
...
if hasAdditionalHelp:
text += ' <a href="ShowMoreHelp">%s</a>' % eg.text.General.moreTag
self.text = '<html><body bgcolor="%s" text="%s">%s</body></html>' % (
self.GetBackgroundColour().GetAsString(wx.C2S_HTML_SYNTAX),
self.GetForegroundColour().GetAsString(wx.C2S_HTML_SYNTAX),
text
)