Bug on new project fixed
authorlbessard
Tue, 14 Aug 2007 15:11:27 +0200
changeset 8 56bae4ff53c4
parent 7 e20fa7257d41
child 9 bc29b3bf2a5a
Bug on new project fixed
Beremiz.py
--- a/Beremiz.py	Mon Aug 13 17:22:39 2007 +0200
+++ b/Beremiz.py	Tue Aug 14 15:11:27 2007 +0200
@@ -408,10 +408,9 @@
                 dialog = ProjectDialog(self)
                 if dialog.ShowModal() == wx.ID_OK:
                     values = dialog.GetValues()
-                    projectname = values.pop("projectName")
                     values["creationDateTime"] = datetime(*localtime()[:6])
-                    self.PLCManager.CreateNewProject(projectname)
-                    self.PLCManager.SetProjectProperties(values)
+                    self.PLCManager.CreateNewProject(values.pop("projectName"))
+                    self.PLCManager.SetProjectProperties(properties=values)
                     self.PLCManager.SaveXMLFile(plc_file)
                     self.CurrentProjectPath = projectpath
                 dialog.Destroy()