equal
deleted
inserted
replaced
264 if col != wx.NOT_FOUND and row != wx.NOT_FOUND: |
264 if col != wx.NOT_FOUND and row != wx.NOT_FOUND: |
265 if self.ParentWindow.Table.GetColLabelValue(col, False) != "Location": |
265 if self.ParentWindow.Table.GetColLabelValue(col, False) != "Location": |
266 return |
266 return |
267 message = None |
267 message = None |
268 if not self.ParentWindow.Table.GetValueByName(row, "Edit"): |
268 if not self.ParentWindow.Table.GetValueByName(row, "Edit"): |
269 message = _("Can't affect a location to a function block instance") |
269 message = _("Can't give a location to a function block instance") |
270 elif self.ParentWindow.Table.GetValueByName(row, "Class") not in ["Local", "Global"]: |
270 elif self.ParentWindow.Table.GetValueByName(row, "Class") not in ["Local", "Global"]: |
271 message = _("Can affect a location only to local or global variables") |
271 message = _("Can only give a location to local or global variables") |
272 else: |
272 else: |
273 try: |
273 try: |
274 values = eval(data) |
274 values = eval(data) |
275 except: |
275 except: |
276 message = _("Invalid value \"%s\" for location")%data |
276 message = _("Invalid value \"%s\" for location")%data |