SVGHMI: DnD UI: Use widget's short description, initially forgoten. svghmi
authorEdouard Tisserant
Tue, 13 Jul 2021 16:18:37 +0200
branchsvghmi
changeset 3279 5615e062a77d
parent 3278 2bcfbea6a2a8
child 3280 09133b155f0c
SVGHMI: DnD UI: Use widget's short description, initially forgoten.
svghmi/ui.py
--- 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")