def make_button(label, callback, extra=None):
"""Utility to make a button widget"""
b = widgets.Button(
description=label,
disabled=False,
button_style='', # 'success', 'info', 'warning', 'danger' or ''
tooltip=label,
)
b.extra = extra
b.on_click(callback)
return b
评论列表
文章目录