canfestival/SlaveEditor.py
changeset 1847 6198190bc121
parent 1773 38fde37c3766
child 1881 091005ec69c4
equal deleted inserted replaced
1846:14b40afccd69 1847:6198190bc121
    69 
    69 
    70             profile = self.Controler.GetCurrentProfileName()
    70             profile = self.Controler.GetCurrentProfileName()
    71             if profile not in ("None", "DS-301"):
    71             if profile not in ("None", "DS-301"):
    72                 other_profile_text = _("%s Profile") % profile
    72                 other_profile_text = _("%s Profile") % profile
    73                 add_menu.append((wx.ITEM_SEPARATOR, None))
    73                 add_menu.append((wx.ITEM_SEPARATOR, None))
    74                 for text, indexes in self.Manager.GetCurrentSpecificMenu():
    74                 for text, _indexes in self.Manager.GetCurrentSpecificMenu():
    75                     add_menu.append((wx.ITEM_NORMAL, (text, wx.NewId(), '', self.GetProfileCallBack(text))))
    75                     add_menu.append((wx.ITEM_NORMAL, (text, wx.NewId(), '', self.GetProfileCallBack(text))))
    76             else:
    76             else:
    77                 other_profile_text = _('Other Profile')
    77                 other_profile_text = _('Other Profile')
    78 
    78 
    79             return [(wx.ITEM_NORMAL, (_('DS-301 Profile'), ID_SLAVEEDITORCONFNODEMENUDS301PROFILE, '', self.OnCommunicationMenu)),
    79             return [(wx.ITEM_NORMAL, (_('DS-301 Profile'), ID_SLAVEEDITORCONFNODEMENUDS301PROFILE, '', self.OnCommunicationMenu)),