gpt4 book ai didi

documentation - ipywidgets.Button 的 'icon' 参数是什么?

转载 作者:行者123 更新时间:2023-12-04 12:05:53 25 4
gpt4 key购买 nike

我试图了解如何在 jupyter 笔记本中显示按钮,但 documentation在此项目上是 bis 稀疏。

提到有一个参数“图标”。但是这是什么意思?可以使用哪些值?是否有一些文档隐藏在其他地方?

最佳答案

你可以从 Font Awesome 4.7 目录中指定一个图标,以 fa- 开头。 .

https://fontawesome.com/v4.7.0/icons/

import ipywidgets as ipyw

ipyw.Button(
description = 'Button',
icon = 'fa-bullhorn',
)

enter image description here

关于documentation - ipywidgets.Button 的 'icon' 参数是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60116974/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com