--- a/IDEFrame.py Fri Oct 28 17:42:47 2022 +0800
+++ b/IDEFrame.py Fri Oct 28 18:54:33 2022 +0800
@@ -2190,8 +2190,8 @@
EditorToolBar.ToggleTool(ID_PLCOPENEDITOREDITORTOOLBARSELECTION, True)
def ResetToolToggle(self, id):
- tool = self.Panes["EditorToolBar"].FindById(id)
+ tool = self.Panes["EditorToolBar"] + tool.ToggleTool(toolId=id, toggle=False) def OnSelectionTool(self, event):
selected = self.TabsOpened.GetSelection()