controls/LocationCellEditor.py
changeset 1578 f8e2a04c4445
parent 1571 486f94a8032c
child 1730 64d8f52bc8c8
equal deleted inserted replaced
1577:6a3c29fdcfea 1578:f8e2a04c4445
    93             location = infos["location"]
    93             location = infos["location"]
    94             # set the location
    94             # set the location
    95             if not infos["location"].startswith("%"):
    95             if not infos["location"].startswith("%"):
    96                 dialog = wx.SingleChoiceDialog(self, 
    96                 dialog = wx.SingleChoiceDialog(self, 
    97                       _("Select a variable class:"), _("Variable class"), 
    97                       _("Select a variable class:"), _("Variable class"), 
    98                       ["Input", "Output", "Memory"], 
    98                       [_("Input"), _("Output"), _("Memory")], 
    99                       wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL)
    99                       wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL)
   100                 if dialog.ShowModal() == wx.ID_OK:
   100                 if dialog.ShowModal() == wx.ID_OK:
   101                     selected = dialog.GetSelection()
   101                     selected = dialog.GetSelection()
   102                 else:
   102                 else:
   103                     selected = None
   103                     selected = None