当前位置:网站首页>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
表示自定义按钮内容的控件。
边栏推荐
- 再说rsync+inotify实现数据的实时备份
- 高效!用虚拟用户搭建FTP工作环境
- Is the main thread the same as the UI thread- Is main thread the same as UI thread?
- Reptile exercises (I)
- Vit (vision transformer) principle and code elaboration
- Configure WebDAV server on Apache
- 分布式事务相关概念与理论
- 敏捷开发/敏捷测试感受
- The old-fashioned synchronized lock optimization will make it clear to you at once!
- DGraph: 大规模动态图数据集
猜你喜欢

PostgreSQL 9.1 soaring Road

Alibaba cloud award winning experience: build a highly available system with polardb-x

CTF竞赛题解之stm32逆向入门

美团·阿里关于多模态召回的应用实践

Valentine's Day confession code

一个数据人对领域模型理解与深入

实时云交互如何助力教育行业发展

比量子化学方法快六个数量级,一种基于绝热状态的绝热人工神经网络方法,可加速对偶氮苯衍生物及此类分子的模拟

Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example

CANN算子:利用迭代器高效实现Tensor数据切割分块处理
随机推荐
n++也不靠谱
【Android Kotlin】lambda的返回语句和匿名函数
A taste of node JS (V), detailed explanation of express module
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
6 分钟看完 BGP 协议。
[Android kotlin] lambda return statement and anonymous function
Is there an elegant way to remove nulls while transforming a Collection using Guava?
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
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
Peak detection of measured signal
Comprehensive evaluation of modular note taking software: craft, notation, flowus
Xue Jing, director of insight technology solutions: Federal learning helps secure the flow of data elements
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
二分查找的简单理解
光环效应——谁说头上有光的就算英雄
高效!用虚拟用户搭建FTP工作环境
C#/VB.NET 给PDF文档添加文本/图像水印
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
A data person understands and deepens the domain model
mysql三级分销代理关系存储