equal
deleted
inserted
replaced
27 from functools import reduce |
27 from functools import reduce |
28 |
28 |
29 import wx |
29 import wx |
30 import wx.lib.buttons |
30 import wx.lib.buttons |
31 import wx.lib.agw.customtreectrl as CT |
31 import wx.lib.agw.customtreectrl as CT |
32 from pprint import pprint |
|
33 |
32 |
34 from PLCControler import * |
33 from PLCControler import * |
35 from util.BitmapLibrary import GetBitmap |
34 from util.BitmapLibrary import GetBitmap |
36 from plcopen.types_enums import GetElementType |
35 from plcopen.types_enums import GetElementType |
37 |
36 |
294 self.SearchResultsTree.SetItemImage(root, self.TreeImageDict[self.ParentWindow.Controler.GetPouType(infos["name"])]) |
293 self.SearchResultsTree.SetItemImage(root, self.TreeImageDict[self.ParentWindow.Controler.GetPouType(infos["name"])]) |
295 else: |
294 else: |
296 self.SearchResultsTree.SetItemImage(root, self.TreeImageDict[infos["type"]]) |
295 self.SearchResultsTree.SetItemImage(root, self.TreeImageDict[infos["type"]]) |
297 |
296 |
298 text = None |
297 text = None |
299 print("XXXXXXXXXXXXXX") |
|
300 pprint(infos) |
|
301 if infos["text"] is not None: |
298 if infos["text"] is not None: |
302 text = infos["text"] |
299 text = infos["text"] |
303 start, end = infos["data"][1:3] |
300 start, end = infos["data"][1:3] |
304 text_lines = infos["text"].splitlines() |
301 text_lines = infos["text"].splitlines() |
305 start_idx = start[1] |
302 start_idx = start[1] |