当前位置:网站首页>Flet tutorial 03 basic introduction to filledbutton (tutorial includes source code) (tutorial includes source code)
Flet tutorial 03 basic introduction to filledbutton (tutorial includes source code) (tutorial includes source code)
2022-07-04 13:44:00 【Knowledge fatness】
FilledButton What is it?
FilledButton stay FloatingActionButton After that, it has the greatest visual impact , It should be used to complete the important final operation of the process , for example Save、Join now or Confirm.
Basic code
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)
Parameters
text
The text displayed on the buttonicon
Icon displayed in button .icon_color
Icon color .tooltip
The text displayed when hovering the mouse over the button .autofocus
If the control will be selected as the initial focus , It is true . If there are multiple controls with auto focus set on the page , The first control added to the page will get focus .content
Controls that represent custom button content .
边栏推荐
- Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
- [AI system frontier dynamics, issue 40] Hinton: my deep learning career and research mind method; Google refutes rumors and gives up tensorflow; The apotheosis framework is officially open source
- 爬虫练习题(一)
- [cloud native | kubernetes] in depth understanding of ingress (12)
- Reinforcement learning - learning notes 1 | basic concepts
- Web knowledge supplement
- N++ is not reliable
- CommVault cooperates with Oracle to provide metallic data management as a service on Oracle cloud
- C语言小型商品管理系统
- 使用宝塔部署halo博客
猜你喜欢
面试官:Redis中哈希数据类型的内部实现方式是什么?
CVPR 2022 | transfusion: Lidar camera fusion for 3D target detection with transformer
Alibaba cloud award winning experience: build a highly available system with polardb-x
The only core indicator of high-quality software architecture
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Annual comprehensive analysis of China's mobile reading market in 2022
Comparative study of the gods in the twilight Era
数据库公共字段自动填充
OpenHarmony应用开发之如何创建DAYU200预览器
【云原生 | Kubernetes篇】深入了解Ingress(十二)
随机推荐
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)
Introduction to XML I
Backgroundworker usage example
嵌入式编程中五个必探的“潜在错误”
DGraph: 大规模动态图数据集
C language staff management system
Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)
Excuse me, have you encountered this situation? CDC 1.4 cannot use timestamp when connecting to MySQL 5.7
C语言中学生成绩管理系统
C foundation in-depth study I
Configure WebDAV server on Apache
《预训练周刊》第52期:屏蔽视觉预训练、目标导向对话
从0到1建设智能灰度数据体系:以vivo游戏中心为例
【云原生 | Kubernetes篇】深入了解Ingress(十二)
Iptables foundation and Samba configuration examples
C语言小型商品管理系统
Using nsproxy to forward messages
C语言课程设计题
. Net using redis
unity不识别rider的其中一种解决方法