SVGHMI: DnD UI: Add hint instructing user to Drag HMI tree items to text field.
--- a/svghmi/ui.py Fri Jun 18 11:47:55 2021 +0200
+++ b/svghmi/ui.py Fri Jun 18 14:13:03 2021 +0200
@@ -183,7 +183,6 @@
class ParamEditor(wx.Panel):
def __init__(self, parent, paramdesc):
-
wx.Panel.__init__(self, parent.main_panel)
label = paramdesc.get("name")+ ": " + paramdesc.get("accepts")
if paramdesc.text:
@@ -251,6 +250,7 @@
self.pathdesc = pathdesc
DropTarget = PathDropTarget(self)
self.edit.SetDropTarget(DropTarget)
+ self.edit.SetHint(_("Drag'n'drop HMI variable here"))
self.Bind(wx.EVT_TEXT, self.OnPathChanged, self.edit)
def OnHMITreeDnD(self):