SVGHMI: DnD UI: Add hint instructing user to Drag HMI tree items to text field. svghmi
authorEdouard Tisserant
Fri, 18 Jun 2021 14:13:03 +0200
branchsvghmi
changeset 3265 f3cb352048b6
parent 3264 51645afeded9
child 3266 aff5cedb35ba
SVGHMI: DnD UI: Add hint instructing user to Drag HMI tree items to text field.
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):