OPC-UA: Extend Drag'N'Drop target to whole input or output panel not only grid. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 10 Nov 2022 19:31:09 +0100
branchwxPython4
changeset 3666 bf3b5f58c832
parent 3665 db7e4952b64f
child 3667 49e6b73de505
OPC-UA: Extend Drag'N'Drop target to whole input or output panel not only grid.
opc_ua/opcua_client_maker.py
--- a/opc_ua/opcua_client_maker.py	Wed Nov 09 12:30:45 2022 +0100
+++ b/opc_ua/opcua_client_maker.py	Thu Nov 10 19:31:09 2022 +0100
@@ -150,7 +150,7 @@
             self.dvc.AppendTextColumn(colname,  idx, width=width, mode=dv.DATAVIEW_CELL_EDITABLE)
 
         DropTarget = NodeDropTarget(self)
-        self.dvc.SetDropTarget(DropTarget)
+        self.SetDropTarget(DropTarget)
 
         self.Sizer = wx.BoxSizer(wx.VERTICAL)