editors/LDViewer.py
branch1.1 Korean release
changeset 1384 02fe382c4511
parent 1347 533741e5075c
child 1571 486f94a8032c
--- a/editors/LDViewer.py	Wed Jul 31 10:45:07 2013 +0900
+++ b/editors/LDViewer.py	Mon Nov 18 12:12:31 2013 +0900
@@ -482,12 +482,12 @@
         dialog = LDElementDialog(self.ParentWindow, self.Controler, "coil")
         dialog.SetPreviewFont(self.GetFont())
         varlist = []
-        vars = self.Controler.GetEditedElementInterfaceVars(self.TagName, self.Debug)
+        vars = self.Controler.GetEditedElementInterfaceVars(self.TagName, debug=self.Debug)
         if vars:
             for var in vars:
-                if var["Class"] != "Input" and var["Type"] == "BOOL":
-                    varlist.append(var["Name"])
-        returntype = self.Controler.GetEditedElementInterfaceReturnType(self.TagName, self.Debug)
+                if var.Class != "Input" and var.Type == "BOOL":
+                    varlist.append(var.Name)
+        returntype = self.Controler.GetEditedElementInterfaceReturnType(self.TagName, debug=self.Debug)
         if returntype == "BOOL":
             varlist.append(self.Controler.GetEditedElementName(self.TagName))
         dialog.SetVariables(varlist)
@@ -582,11 +582,11 @@
             dialog = LDElementDialog(self.ParentWindow, self.Controler, "contact")
             dialog.SetPreviewFont(self.GetFont())
             varlist = []
-            vars = self.Controler.GetEditedElementInterfaceVars(self.TagName, self.Debug)
+            vars = self.Controler.GetEditedElementInterfaceVars(self.TagName, debug=self.Debug)
             if vars:
                 for var in vars:
-                    if var["Class"] != "Output" and var["Type"] == "BOOL":
-                        varlist.append(var["Name"])
+                    if var.Class != "Output" and var.Type == "BOOL":
+                        varlist.append(var.Name)
             dialog.SetVariables(varlist)
             dialog.SetValues({"name":"","type":CONTACT_NORMAL})
             if dialog.ShowModal() == wx.ID_OK:
@@ -796,12 +796,12 @@
                         dialog = LDElementDialog(self.ParentWindow, self.Controleur, "coil")
                         dialog.SetPreviewFont(self.GetFont())
                         varlist = []
-                        vars = self.Controler.GetEditedElementInterfaceVars(self.TagName, self.Debug)
+                        vars = self.Controler.GetEditedElementInterfaceVars(self.TagName, debug=self.Debug)
                         if vars:
                             for var in vars:
-                                if var["Class"] != "Input" and var["Type"] == "BOOL":
-                                    varlist.append(var["Name"])
-                        returntype = self.Controler.GetEditedElementInterfaceReturnType(self.TagName, self.Debug)
+                                if var.Class != "Input" and var.Type == "BOOL":
+                                    varlist.append(var.Name)
+                        returntype = self.Controler.GetEditedElementInterfaceReturnType(self.TagName, debug=self.Debug)
                         if returntype == "BOOL":
                             varlist.append(self.Controler.GetEditedElementName(self.TagName))
                         dialog.SetVariables(varlist)