Backed out changeset c646a1f0fb0b - was on wrong branch wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 22 Oct 2021 12:48:22 +0200
branchwxPython4
changeset 3371 d486b98d7005
parent 3369 c646a1f0fb0b
child 3379 c3d462118d37
Backed out changeset c646a1f0fb0b - was on wrong branch
opc_ua/opcua_client_maker.py
--- a/opc_ua/opcua_client_maker.py	Thu Oct 21 20:56:05 2021 +0200
+++ b/opc_ua/opcua_client_maker.py	Fri Oct 22 12:48:22 2021 +0200
@@ -7,7 +7,7 @@
 from opcua import ua
 
 import wx
-from wx.lib.agw.hypertreelist import HyperTreeList as TreeListCtrl
+import wx.lib.gizmos as gizmos  # Formerly wx.gizmos in Classic
 import wx.dataview as dv
 
 
@@ -38,9 +38,9 @@
 
 directions = ["input", "output"]
 
-class OPCUASubListModel(dv.PyDataViewIndexListModel):
+class OPCUASubListModel(dv.DataViewIndexListModel):
     def __init__(self, data, log):
-        dv.PyDataViewIndexListModel.__init__(self, len(data))
+        dv.DataViewIndexListModel.__init__(self, len(data))
         self.data = data
         self.log = log
 
@@ -310,10 +310,10 @@
             self.tree_sizer.AddGrowableCol(0)
             self.tree_sizer.AddGrowableRow(0)
 
-            self.tree = TreeListCtrl(self.tree_panel, -1, style=0, agwStyle=
-                                            wx.TR_DEFAULT_STYLE
-                                            | wx.TR_MULTIPLE
-                                            | wx.TR_FULL_ROW_HIGHLIGHT
+            self.tree = gizmos.TreeListCtrl(self.tree_panel, -1, style=0, agwStyle=
+                                            gizmos.TR_DEFAULT_STYLE
+                                            | gizmos.TR_MULTIPLE
+                                            | gizmos.TR_FULL_ROW_HIGHLIGHT
                                        )
 
             prepare_image_list()