equal
deleted
inserted
replaced
284 elif base_type not in LOCATIONDATATYPES[location[0]]: |
284 elif base_type not in LOCATIONDATATYPES[location[0]]: |
285 message = _("Incompatible size of data between \"%s\" and \"%s\"")%(location, variable_type) |
285 message = _("Incompatible size of data between \"%s\" and \"%s\"")%(location, variable_type) |
286 else: |
286 else: |
287 dialog = wx.SingleChoiceDialog(self.ParentWindow.ParentWindow.ParentWindow, |
287 dialog = wx.SingleChoiceDialog(self.ParentWindow.ParentWindow.ParentWindow, |
288 _("Select a variable class:"), _("Variable class"), |
288 _("Select a variable class:"), _("Variable class"), |
289 ["Input", "Output", "Memory"], |
289 [_("Input"), _("Output"), _("Memory")], |
290 wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL) |
290 wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL) |
291 if dialog.ShowModal() == wx.ID_OK: |
291 if dialog.ShowModal() == wx.ID_OK: |
292 selected = dialog.GetSelection() |
292 selected = dialog.GetSelection() |
293 else: |
293 else: |
294 selected = None |
294 selected = None |
322 var_name = values[0] |
322 var_name = values[0] |
323 tagname = self.ParentWindow.GetTagName() |
323 tagname = self.ParentWindow.GetTagName() |
324 dlg = wx.TextEntryDialog( |
324 dlg = wx.TextEntryDialog( |
325 self.ParentWindow.ParentWindow.ParentWindow, |
325 self.ParentWindow.ParentWindow.ParentWindow, |
326 _("Confirm or change variable name"), |
326 _("Confirm or change variable name"), |
327 'Variable Drop', var_name) |
327 _('Variable Drop'), var_name) |
328 dlg.SetValue(var_name) |
328 dlg.SetValue(var_name) |
329 var_name = dlg.GetValue() if dlg.ShowModal() == wx.ID_OK else None |
329 var_name = dlg.GetValue() if dlg.ShowModal() == wx.ID_OK else None |
330 dlg.Destroy() |
330 dlg.Destroy() |
331 if var_name is None: |
331 if var_name is None: |
332 return |
332 return |
344 if values[1] == "location": |
344 if values[1] == "location": |
345 location = values[0] |
345 location = values[0] |
346 if not location.startswith("%"): |
346 if not location.startswith("%"): |
347 dialog = wx.SingleChoiceDialog(self.ParentWindow.ParentWindow.ParentWindow, |
347 dialog = wx.SingleChoiceDialog(self.ParentWindow.ParentWindow.ParentWindow, |
348 _("Select a variable class:"), _("Variable class"), |
348 _("Select a variable class:"), _("Variable class"), |
349 ["Input", "Output", "Memory"], |
349 [_("Input"), _("Output"), _("Memory")], |
350 wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL) |
350 wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL) |
351 if dialog.ShowModal() == wx.ID_OK: |
351 if dialog.ShowModal() == wx.ID_OK: |
352 selected = dialog.GetSelection() |
352 selected = dialog.GetSelection() |
353 else: |
353 else: |
354 selected = None |
354 selected = None |