equal
deleted
inserted
replaced
260 if blockname == "": |
260 if blockname == "": |
261 dialog = wx.TextEntryDialog(self.ParentWindow, _("Block name"), _("Please enter a block name"), "", wx.OK|wx.CANCEL|wx.CENTRE) |
261 dialog = wx.TextEntryDialog(self.ParentWindow, _("Block name"), _("Please enter a block name"), "", wx.OK|wx.CANCEL|wx.CENTRE) |
262 if dialog.ShowModal() == wx.ID_OK: |
262 if dialog.ShowModal() == wx.ID_OK: |
263 blockname = dialog.GetValue() |
263 blockname = dialog.GetValue() |
264 else: |
264 else: |
|
265 event.SetDragText("") |
265 return |
266 return |
266 dialog.Destroy() |
267 dialog.Destroy() |
267 if blockname.upper() in [name.upper() for name in self.Controler.GetProjectPouNames(self.Debug)]: |
268 if blockname.upper() in [name.upper() for name in self.Controler.GetProjectPouNames(self.Debug)]: |
268 message = _("\"%s\" pou already exists!")%blockname |
269 message = _("\"%s\" pou already exists!")%blockname |
269 elif blockname.upper() in [name.upper() for name in self.Controler.GetEditedElementVariables(self.TagName, self.Debug)]: |
270 elif blockname.upper() in [name.upper() for name in self.Controler.GetEditedElementVariables(self.TagName, self.Debug)]: |