def new_button(description, function): """Create a new Button widget and set its on_click callback""" button = Button(description=description) button.on_click(function) return button