equal
deleted
inserted
replaced
1184 else: |
1184 else: |
1185 defaultpath = config.Read("lastopenedfolder") |
1185 defaultpath = config.Read("lastopenedfolder") |
1186 |
1186 |
1187 dialog = wx.DirDialog(self , "Choose a project", defaultpath, wx.DD_NEW_DIR_BUTTON) |
1187 dialog = wx.DirDialog(self , "Choose a project", defaultpath, wx.DD_NEW_DIR_BUTTON) |
1188 if dialog.ShowModal() == wx.ID_OK: |
1188 if dialog.ShowModal() == wx.ID_OK: |
|
1189 projectpath = dialog.GetPath() |
|
1190 dialog.Destroy() |
1189 config.Write("lastopenedfolder", os.path.dirname(projectpath)) |
1191 config.Write("lastopenedfolder", os.path.dirname(projectpath)) |
1190 config.Flush() |
1192 config.Flush() |
1191 projectpath = dialog.GetPath() |
|
1192 dialog.Destroy() |
|
1193 self.PluginRoot = PluginsRoot(self, self.Log, self.runtime_port) |
1193 self.PluginRoot = PluginsRoot(self, self.Log, self.runtime_port) |
1194 res = self.PluginRoot.NewProject(projectpath) |
1194 res = self.PluginRoot.NewProject(projectpath) |
1195 if not res : |
1195 if not res : |
1196 self.RefreshPLCParams() |
1196 self.RefreshPLCParams() |
1197 self.RefreshPluginTree() |
1197 self.RefreshPluginTree() |