--- a/POULibrary.py Mon Aug 21 20:17:19 2017 +0000
+++ b/POULibrary.py Mon Aug 21 23:22:58 2017 +0300
@@ -24,6 +24,7 @@
from weakref import ref
+
class POULibrary:
def __init__(self, CTR, LibName, TypeStack):
from PLCControler import PLCControler
@@ -33,21 +34,21 @@
self.LibraryControler.OpenXMLFile(self.GetLibraryPath())
self.LibraryControler.ClearConfNodeTypes()
self.LibraryControler.AddConfNodeTypesList(TypeStack)
- self.program = None;
+ self.program = None
def GetSTCode(self):
if not self.program:
self.program = self.LibraryControler.GenerateProgram()[0]+"\n"
- return self.program
+ return self.program
def GetName(self):
return self.LibName
def GetCTR(self):
return self.CTR()
-
+
def GetTypes(self):
- return {"name" : self.GetName(), "types": self.LibraryControler.Project}
+ return {"name": self.GetName(), "types": self.LibraryControler.Project}
def GetLibraryPath(self):
raise Exception("Not implemented")