equal
deleted
inserted
replaced
270 elif location[0] not in LOCATIONDATATYPES: |
270 elif location[0] not in LOCATIONDATATYPES: |
271 message = _("Unrecognized data size \"%s\"")%location[0] |
271 message = _("Unrecognized data size \"%s\"")%location[0] |
272 elif base_type not in LOCATIONDATATYPES[location[0]]: |
272 elif base_type not in LOCATIONDATATYPES[location[0]]: |
273 message = _("Incompatible size of data between \"%s\" and \"%s\"")%(location, variable_type) |
273 message = _("Incompatible size of data between \"%s\" and \"%s\"")%(location, variable_type) |
274 else: |
274 else: |
275 dialog = wx.SingleChoiceDialog(self.ParentWindow, _("Select a variable class:"), _("Variable class"), ["Input", "Output", "Memory"], wx.OK|wx.CANCEL) |
275 dialog = wx.SingleChoiceDialog(self.ParentWindow, |
|
276 _("Select a variable class:"), _("Variable class"), |
|
277 ["Input", "Output", "Memory"], |
|
278 wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL) |
276 if dialog.ShowModal() == wx.ID_OK: |
279 if dialog.ShowModal() == wx.ID_OK: |
277 selected = dialog.GetSelection() |
280 selected = dialog.GetSelection() |
278 if selected == 0: |
281 if selected == 0: |
279 location = "%I" + location |
282 location = "%I" + location |
280 elif selected == 1: |
283 elif selected == 1: |