def append_style(icon_name, tooltip, do_abi_cb, on_abi_cb): button = AbiButton(abi, 'style-name', do_abi_cb, on_abi_cb) button.props.icon_name = icon_name button.props.group = group button.props.tooltip = tooltip self.insert(button, -1) return button
def append_align(icon_name, tooltip, do_abi_cb, style_name): button = AbiButton(abi, style_name, do_abi_cb) button.props.icon_name = icon_name button.props.group = group button.props.tooltip = tooltip self.insert(button, -1) return button