branch | wxPython4 |
changeset 3379 | c3d462118d37 |
parent 3378 | e655ec8162e1 |
child 3589 | a0b645a934c9 |
--- a/opc_ua/client.py Fri Oct 22 12:48:22 2021 +0200 +++ b/opc_ua/client.py Fri Oct 29 18:20:03 2021 +0200 @@ -49,12 +49,15 @@ EditorType = OPCUAClientEditor def __init__(self): - self.modeldata = OPCUAClientModel() + self.modeldata = OPCUAClientModel(self.Log) filepath = self.GetFileName() if os.path.isfile(filepath): self.modeldata.LoadCSV(filepath) + def Log(self, msg): + self.GetCTRoot().logger.write(msg) + def GetModelData(self): return self.modeldata