当前位置:网站首页>Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
2022-07-07 09:46:00 【知识大胖】
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
Flet是什么
Flet 是一个框架,使您能够轻松地以您喜欢的语言构建实时 Web、移动和桌面应用程序,并与您的团队安全地共享它们。无需前端经验。
什么是Divider
一条细的水平线,两边都有填充,这代表了一个分隔符。
实战代码
import flet
from flet import Column, Container, Divider, Page, alignment, colors
def main(page: Page):
page.add(
Column(
[
Container(
bgcolor=colors.AMBER,
alignment=alignment.center,
expand=True,
),
Divider(),
Container(bgcolor=colors.PINK, alignment=alignment.center, expand=True),
Divider(height=1, color="white"),
Container(
边栏推荐
- Common SQL statement collation: MySQL
- electron添加SQLite数据库
- VIM command mode and input mode switching
- Onedns helps college industry network security
- Electron adding SQLite database
- 【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
- SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算
- 【系统设计】指标监控和告警系统
- STM32 entry development NEC infrared protocol decoding (ultra low cost wireless transmission scheme)
- Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
猜你喜欢
STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
About the application of writing shell script JSON in JMeter
Le Cluster kubernets en cours d'exécution veut ajuster l'adresse du segment réseau du pod
使用MeterSphere让你的测试工作持续高效
相机标定(2): 单目相机标定总结
SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算
The Oracle message permission under the local Navicat connection liunx is insufficient
测试开发基础,教你做一个完整功能的Web平台之环境准备
STM32F1与STM32CubeIDE编程实例-315M超再生无线遥控模块驱动
Poor math students who once dropped out of school won the fields award this year
随机推荐
‘module‘ object is not callable错误
Two week selection of tdengine community issues | phase II
對比學習之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
Reasons for the failure of web side automation test
面试被问到了解哪些开发模型?看这一篇就够了
博客搬家到知乎
STM32F1与STM32CubeIDE编程实例-315M超再生无线遥控模块驱动
自律,提升自制力原来也有方法
Talk about SOC startup (11) kernel initialization
Talk about SOC startup (IX) adding a new board to uboot
Talk about SOC startup (VI) uboot startup process II
【问道】编译原理
Qt|多个窗口共有一个提示框类
正在运行的Kubernetes集群想要调整Pod的网段地址
浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派
audit 移植
STM32入门开发 NEC红外线协议解码(超低成本无线传输方案)
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
Solve the problem that vscode can only open two tabs
Blog moved to Zhihu