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)), |