当前位置:网站首页>Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
2022-07-05 16:36:00 【Knowledge fatness】
Flet What is it?
Flet It's a framework , Make it easy for you to build real-time in your favorite language Web、 Mobile and desktop applications , And share them safely with your team . No front-end experience .
What is? Row
Controls that display their children in a horizontal array , To make child controls expand and fill the available horizontal space ,
Combat code
import flet
from flet import (
Column,
Container,
Page,
Row,
Slider,
Text,
alignment,
border_radius,
colors,
)
def main(page: Page):
def items(count):
items = []
for i in range(1, count + 1):
items.append(
Container(
content=Text(value=i),
alignment=alignment.center,
width=50,
height=50,
bgcolor=colors.AMBER,
border_radius=border_radius.all(5),
)
)
边栏推荐
猜你喜欢
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
"21 days proficient in typescript-3" - install and build a typescript development environment md
ES6 drill down - Async functions and symbol types
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
单商户 V4.4,初心未变,实力依旧!
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存
ES6深入—ES6 Generator 函数
新春限定丨“牛年忘烦”礼包等你来领~
随机推荐
Cartoon: what is blue-green deployment?
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
中间表是如何被消灭的?
Transaction rollback exception
The memory of a Zhang
移动办公时如何使用frp内网穿透+teamviewer方式快速连入家中内网主机
迁移/home分区
一键安装脚本实现快速部署GrayLog Server 4.2.10单机版
ES6深入—ES6 Generator 函数
单商户 V4.4,初心未变,实力依旧!
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
记一次'非常诡异'的云安全组规则问题排查过程
清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
[es6] 模板字符串内添加if判断或添加三元运算符判断
如何安装mysql
《MongoDB入门教程》第04篇 MongoDB客户端
Using graylog alarm function to realize the regular work reminder of nail group robots
APICloud云调试解决方案
Relationship between objects and classes