def get_description(global_last, glob_desc, style_desc): """Join together the general and style description for an item.""" if glob_desc and style_desc: if global_last: return tkMarkdown.join(style_desc, glob_desc) else: return tkMarkdown.join(glob_desc, style_desc) elif glob_desc: return glob_desc elif style_desc: return style_desc else: return tkMarkdown.MarkdownData() # No description
def get_description(global_last, glob_desc, style_desc): """Join together the general and style description for an item.""" if glob_desc and style_desc: if global_last: return tkMarkdown.join(style_desc, glob_desc) else: return tkMarkdown.join(glob_desc, style_desc) elif glob_desc: return glob_desc elif style_desc: return style_desc else: return tkMarkdown.MarkdownData() # No description
def add_over(self, override: 'ConfigGroup'): """Override a ConfigGroup to add additional widgets.""" # Make sure they don't double-up. conficts = self.widget_ids() & override.widget_ids() if conficts: raise ValueError('Duplicate IDs in "{}" override - {}', self.id, conficts) self.widgets.extend(override.widgets) self.multi_widgets.extend(override.multi_widgets) self.desc = tkMarkdown.join(self.desc, override.desc) # Don't display that as well. CONFIG_ORDER.remove(override)
def add_over(self, override: 'ConfigGroup'): """Override a ConfigGroup to add additional widgets.""" # Make sure they don't double-up. conficts = self.widget_ids() & override.widget_ids() if conficts: raise ValueError('Duplicate IDs in "{}" override - {}', self.id, conficts) self.widgets.extend(override.widgets) self.multi_widgets.extend(override.multi_widgets) self.desc = tkMarkdown.join(self.desc, override.desc) # Don't display that as well. CONFIG_ORDER.remove(override)