当前位置:网站首页>Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)
Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)
2022-07-04 12:44:00 【知识大胖】
FilledButton是什么
FilledButton在FloatingActionButton之后具有最大的视觉冲击力,应该用于完成流程的重要的最终操作,例如Save、Join now或Confirm。
基础代码
import flet
from flet import FilledButton, Page
def main(page: Page):
page.title = "Basic filled buttons"
page.add(
FilledButton(text="Filled button"),
FilledButton("Disabled button", disabled=True),
FilledButton("Button with icon", icon="add"),
)
flet.app(target=main)
参数
text
按钮上显示的文本icon
按钮中显示的图标。icon_color
图标颜色。tooltip
将鼠标悬停在按钮上时显示的文本。autofocus
如果控件将被选为初始焦点,则为真。如果页面上有多个设置了自动对焦的控件,则添加到页面的第一个控件将获得焦点。content
表示自定义按钮内容的控件。
边栏推荐
- Simple understanding of binary search
- MDK在头文件中使用预编译器时,#ifdef 无效的问题
- Practice: fabric user certificate revocation operation process
- Alibaba cloud award winning experience: build a highly available system with polardb-x
- runc hang 导致 Kubernetes 节点 NotReady
- Master the use of auto analyze in data warehouse
- Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
- 实时云交互如何助力教育行业发展
- CTF竞赛题解之stm32逆向入门
- 用fail2ban阻止密码尝试攻
猜你喜欢
Is the outdoor LED screen waterproof?
Dgraph: large scale dynamic graph dataset
6 分钟看完 BGP 协议。
数据库锁表?别慌,本文教你如何解决
Golang sets the small details of goproxy proxy proxy, which is applicable to go module download timeout and Alibaba cloud image go module download timeout
Detailed explanation of mt4api documentary and foreign exchange API documentary interfaces
Reptile exercises (I)
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Comparative study of the gods in the twilight Era
DVWA range exercise 4
随机推荐
The old-fashioned synchronized lock optimization will make it clear to you at once!
After installing vscode, the program runs (an include error is detected, please update the includepath, which has been solved for this translation unit (waveform curve is disabled) and (the source fil
求解:在oracle中如何用一条语句用delete删除两个表中jack的信息
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
Why can the implementation class of abstractdispatcherservletinitializer be called when initializing the web container
How real-time cloud interaction helps the development of education industry
二分查找的简单理解
Practice: fabric user certificate revocation operation process
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
Reading cognitive Awakening
Will the concept of "being integrated" become a new inflection point of the information and innovation industry?
「小技巧」给Seurat对象瘦瘦身
Concepts and theories related to distributed transactions
Efficient! Build FTP working environment with virtual users
七、软件包管理
敏捷开发/敏捷测试感受
实时云交互如何助力教育行业发展
从0到1建设智能灰度数据体系:以vivo游戏中心为例
2022年中国移动阅读市场年度综合分析
《预训练周刊》第52期:屏蔽视觉预训练、目标导向对话