fixed bug when add resource
authorgreg
Wed, 27 Feb 2008 11:30:43 +0100
changeset 177 a3f6670949ba
parent 176 18af41faafd1
child 178 a9035374eb05
fixed bug when add resource
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Wed Feb 27 11:14:26 2008 +0100
+++ b/PLCOpenEditor.py	Wed Feb 27 11:30:43 2008 +0100
@@ -1773,7 +1773,7 @@
         event.Skip()
 
     def GenerateAddResourceFunction(self, config_name):
-        def OnAddResourceMenu(self, event):
+        def OnAddResourceMenu(event):
             dialog = ResourceNameDialog(self, "Please enter resource name", "Add new resource")
             dialog.SetPouNames(self.Controler.GetProjectPouNames())
             dialog.SetPouElementNames(self.Controler.GetProjectPouVariables())