# HG changeset patch # User Edouard Tisserant # Date 1624018383 -7200 # Node ID f3cb352048b69c26e3ec42dc9b0751d89b9b50e4 # Parent 51645afeded931bab282ded6bf13ac44a31e2c48 SVGHMI: DnD UI: Add hint instructing user to Drag HMI tree items to text field. diff -r 51645afeded9 -r f3cb352048b6 svghmi/ui.py --- 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):