def error(message, level="error", exit_code=1, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"error: {}".format(message), **kwargs)
    sys.exit(exit_code)
def _on_item_button_remove_clicked(self, button, item):
    self._locker.lock("emit_size_spin_button_value_changed")