--- a/svghmi/ui.py Mon Mar 29 10:26:42 2021 +0200
+++ b/svghmi/ui.py Mon Mar 29 14:35:45 2021 +0200
@@ -18,13 +18,6 @@
from util.ProcessLogger import ProcessLogger
-def SVGHMIEditorUpdater(ref):
- def SVGHMIEditorUpdate():
- o = ref()
- if o is not None:
- wx.CallAfter(o.MakeTree)
- return SVGHMIEditorUpdate
-
class HMITreeSelector(wx.TreeCtrl):
def __init__(self, parent):
global on_hmitree_update
@@ -34,7 +27,6 @@
wx.SUNKEN_BORDER |
wx.TR_LINES_AT_ROOT))
- on_hmitree_update = SVGHMIEditorUpdater(weakref.ref(self))
self.MakeTree()
def _recurseTree(self, current_hmitree_root, current_tc_root):