SVGHMI: DnD UI: Use widget's short description, initially forgoten.
--- a/svghmi/ui.py Tue Jul 13 16:16:58 2021 +0200
+++ b/svghmi/ui.py Tue Jul 13 16:18:37 2021 +0200
@@ -602,11 +602,11 @@
# Keep double newlines (to mark paragraphs)
widget_desc = widget.find("desc")
self.desc.SetValue(
- fname + ":\n" + (
+ fname + ":\n\n" + (
_("No description given") if widget_desc is None else
KeepDoubleNewLines(widget_desc.text)
) + "\n\n" +
- defs.find("type").text + " Widget:\n" +
+ defs.find("type").text + " Widget: "+defs.find("shortdesc").text+"\n\n" +
KeepDoubleNewLines(defs.find("longdesc").text))
prefillargs = widget.findall("arg")
args = defs.findall("arg")