controls/LocationCellEditor.py
changeset 1745 f9d32913bad4
parent 1736 7e61baa047f0
child 1767 c74815729afd
equal deleted inserted replaced
1744:69dfdb26f600 1745:f9d32913bad4
    95             # set the location
    95             # set the location
    96             if not infos["location"].startswith("%"):
    96             if not infos["location"].startswith("%"):
    97                 dialog = wx.SingleChoiceDialog(self,
    97                 dialog = wx.SingleChoiceDialog(self,
    98                       _("Select a variable class:"), _("Variable class"),
    98                       _("Select a variable class:"), _("Variable class"),
    99                       [_("Input"), _("Output"), _("Memory")],
    99                       [_("Input"), _("Output"), _("Memory")],
   100                       wx.DEFAULT_DIALOG_STYLE|wx.OK|wx.CANCEL)
   100                       wx.DEFAULT_DIALOG_STYLE | wx.OK | wx.CANCEL)
   101                 if dialog.ShowModal() == wx.ID_OK:
   101                 if dialog.ShowModal() == wx.ID_OK:
   102                     selected = dialog.GetSelection()
   102                     selected = dialog.GetSelection()
   103                 else:
   103                 else:
   104                     selected = None
   104                     selected = None
   105                 dialog.Destroy()
   105                 dialog.Destroy()