当前位置:网站首页>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
表示自定义按钮内容的控件。
边栏推荐
- A taste of node JS (V), detailed explanation of express module
- Use fail2ban to prevent password attempts
- 实时云交互如何助力教育行业发展
- Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
- Read the BGP agreement in 6 minutes.
- PostgreSQL 9.1 飞升之路
- Etcd storage, watch and expiration mechanism
- 七、软件包管理
- It is six orders of magnitude faster than the quantum chemical method. An adiabatic artificial neural network method based on adiabatic state can accelerate the simulation of dual nitrogen benzene der
- Definition of cognition
猜你喜欢
Transformer principle and code elaboration (tensorflow)
runc hang 导致 Kubernetes 节点 NotReady
Is the outdoor LED screen waterproof?
Full arrangement (medium difficulty)
Meituan Ali's Application Practice on multimodal recall
PostgreSQL 9.1 soaring Road
CA:用于移动端的高效坐标注意力机制 | CVPR 2021
CVPR 2022 | TransFusion:用Transformer进行3D目标检测的激光雷达-相机融合
【AI系统前沿动态第40期】Hinton:我的深度学习生涯与研究心法;Google辟谣放弃TensorFlow;封神框架正式开源
Will the concept of "being integrated" become a new inflection point of the information and innovation industry?
随机推荐
求解:在oracle中如何用一条语句用delete删除两个表中jack的信息
Deploy halo blog with pagoda
PostgreSQL 9.1 soaring Road
jsonp
C#/VB. Net to add text / image watermarks to PDF documents
Reptile exercises (I)
MDK在头文件中使用预编译器时,#ifdef 无效的问题
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
After the game starts, you will be prompted to install HMS core. Click Cancel, and you will not be prompted to install HMS core again (initialization failure returns 907135003)
面试官:Redis 过期删除策略和内存淘汰策略有什么区别?
美团·阿里关于多模态召回的应用实践
Annual comprehensive analysis of China's mobile reading market in 2022
Concepts and theories related to distributed transactions
Rsyslog配置及使用教程
WPF双滑块控件以及强制捕获鼠标事件焦点
微服务入门
二分查找的简单理解
PostgreSQL 9.1 飞升之路
AbstractDispatcherServletInitializer 的实现类为什么可以在初始化Web容器的时候被调用