def _add_usages_modifying_help(self, usages): if any(u for u in usages if not u.can_be_renamed): help = Label( self, label='Highlighted imports are not modified because they ' 'contain variables in resource file name.') help.Wrap(self._width) help.SetForegroundColour('red') self._sizer.add_with_padding(help)
def _get_description(self, plugin): desc = Label(self, label=plugin.doc) if plugin.error: desc.SetForegroundColour("firebrick") return desc