当前位置:网站首页>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
表示自定义按钮内容的控件。
边栏推荐
- The old-fashioned synchronized lock optimization will make it clear to you at once!
- CVPR 2022 | TransFusion:用Transformer进行3D目标检测的激光雷达-相机融合
- Peak detection of measured signal
- Go zero micro service practical series (IX. ultimate optimization of seckill performance)
- Excuse me, have you encountered this situation? CDC 1.4 cannot use timestamp when connecting to MySQL 5.7
- Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
- DGraph: 大规模动态图数据集
- PostgreSQL 9.1 飞升之路
- 【AI系统前沿动态第40期】Hinton:我的深度学习生涯与研究心法;Google辟谣放弃TensorFlow;封神框架正式开源
- 提高MySQL深分页查询效率的三种方案
猜你喜欢

"Pre training weekly" issue 52: shielding visual pre training and goal-oriented dialogue

runc hang 导致 Kubernetes 节点 NotReady

Annual comprehensive analysis of China's mobile reading market in 2022

实战:fabric 用户证书吊销操作流程

DGraph: 大规模动态图数据集

CVPR 2022 | transfusion: Lidar camera fusion for 3D target detection with transformer

诸神黄昏时代的对比学习

PostgreSQL 9.1 soaring Road

ArcGIS uses grid processing tools for image clipping
提高MySQL深分页查询效率的三种方案
随机推荐
Apache server access log access Log settings
PostgreSQL 9.1 飞升之路
6 分钟看完 BGP 协议。
runc hang 导致 Kubernetes 节点 NotReady
"Tips" to slim down Seurat objects
CA:用于移动端的高效坐标注意力机制 | CVPR 2021
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
【云原生 | Kubernetes篇】深入了解Ingress(十二)
从0到1建设智能灰度数据体系:以vivo游戏中心为例
iptables基础及Samba配置举例
Configure WebDAV server on Apache
Runc hang causes the kubernetes node notready
Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
Using nsproxy to forward messages
[Android kotlin] lambda return statement and anonymous function
Comparative study of the gods in the twilight Era
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
Meituan Ali's Application Practice on multimodal recall
7、 Software package management
面试官:Redis 过期删除策略和内存淘汰策略有什么区别?