当前位置:网站首页>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 .
边栏推荐
- 【AI系统前沿动态第40期】Hinton:我的深度学习生涯与研究心法;Google辟谣放弃TensorFlow;封神框架正式开源
- C foundation in-depth learning II
- remount of the / superblock failed: Permission denied
- Dgraph: large scale dynamic graph dataset
- 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)
- SQL语言
- In 2022, it will be es2022 soon. Do you only know the new features of ES6?
- C basic supplement
- Is the outdoor LED screen waterproof?
- Three schemes to improve the efficiency of MySQL deep paging query
猜你喜欢
高效!用虚拟用户搭建FTP工作环境
Alibaba cloud award winning experience: build a highly available system with polardb-x
Oracle 被 Ventana Research 评为数字创新奖总冠军
2022KDD预讲 | 11位一作学者带你提前解锁优秀论文
CTF competition problem solution STM32 reverse introduction
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)
"Pre training weekly" issue 52: shielding visual pre training and goal-oriented dialogue
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
Reptile exercises (I)
实时云交互如何助力教育行业发展
随机推荐
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
C语言程序设计选题参考
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
Besides, rsync+inotify realizes real-time backup of data
微服务入门
Optional values and functions of the itemized contenttype parameter in the request header
Rsyslog配置及使用教程
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
安装trinity、解决报错
C array supplement
PostgreSQL 9.1 飞升之路
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)
Simple understanding of binary search
Oracle 被 Ventana Research 评为数字创新奖总冠军
HAProxy高可用解决方案
XML入门一
聊聊支付流程的设计与实现逻辑
Don't turn down, three sentences to clarify the origin of cross domain resource request errors
ViewBinding和DataBinding的理解和区别