--- a/opc_ua/opcua_client_maker.py Thu Oct 21 13:18:18 2021 +0200
+++ b/opc_ua/opcua_client_maker.py Thu Oct 21 20:56:05 2021 +0200
@@ -7,7 +7,7 @@
-import wx.lib.gizmos as gizmos # Formerly wx.gizmos in Classic
+from wx.lib.agw.hypertreelist import HyperTreeList as TreeListCtrl @@ -38,9 +38,9 @@
directions = ["input", "output"]
-class OPCUASubListModel(dv.DataViewIndexListModel):
+class OPCUASubListModel(dv.PyDataViewIndexListModel): def __init__(self, data, log):
- dv.DataViewIndexListModel.__init__(self, len(data))
+ dv.PyDataViewIndexListModel.__init__(self, len(data)) @@ -310,10 +310,10 @@
self.tree_sizer.AddGrowableCol(0)
self.tree_sizer.AddGrowableRow(0)
- self.tree = gizmos.TreeListCtrl(self.tree_panel, -1, style=0, agwStyle=
- gizmos.TR_DEFAULT_STYLE
- | gizmos.TR_FULL_ROW_HIGHLIGHT
+ self.tree = TreeListCtrl(self.tree_panel, -1, style=0, agwStyle= + | wx.TR_FULL_ROW_HIGHLIGHT