当前位置:网站首页>Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
2022-07-07 11:54: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? GridView
Scrollable 2D control array .
Combat code
import flet
from flet import Image, Page, GridView, border_radius
def main(page: Page):
page.title = "GridView Example"
page.theme_mode = "dark"
page.padding = 50
page.update()
images = GridView(
expand=1,
runs_count=5,
max_extent=150,
child_aspect_ratio=1.0,
spacing=5,
run_spacing=5,
)
page.add(images)
for i in range(0, 60):
images.controls.append(
Image(
src=f"https://picsum.photos/150/150?{i}",
fit="none",
repeat="noRepeat",
border_radius=border_radius.all(10),
)
)
page.update()
flet.app(target=main, view=flet.WEB_BROWSER)
边栏推荐
- Technology sharing | packet capturing analysis TCP protocol
- Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
- Talk about SOC startup (11) kernel initialization
- [filter tracking] strapdown inertial navigation simulation based on MATLAB [including Matlab source code 1935]
- VIM command mode and input mode switching
- 【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
- MATLAB實現Huffman編碼譯碼含GUI界面
- Talk about SOC startup (x) kernel startup pilot knowledge
- 一度辍学的数学差生,获得今年菲尔兹奖
- 《通信软件开发与应用》课程结业报告
猜你喜欢
sql里,我想设置外键,为什么出现这个问题
In SQL, I want to set foreign keys. Why is this problem
Talk about SOC startup (x) kernel startup pilot knowledge
正在运行的Kubernetes集群想要调整Pod的网段地址
【滤波跟踪】捷联惯导纯惯导解算matlab实现
5V串口接3.3V单片机串口怎么搞?
.NET MAUI 性能提升
[system design] index monitoring and alarm system
Onedns helps college industry network security
聊聊SOC启动(十) 内核启动先导知识
随机推荐
Distributed database master-slave configuration (MySQL)
Electron adding SQLite database
. Net Maui performance improvement
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist
SwiftUI 教程之如何在 2 秒内实现自动滚动功能
本地navicat连接liunx下的oracle报权限不足
sink 消费 到 MySQL, 数据库表里面已经设置了 自增主键, flink 里面,如何 操作?
STM32 entry development NEC infrared protocol decoding (ultra low cost wireless transmission scheme)
Software design - "high cohesion and low coupling"
Learning notes | data Xiaobai uses dataease to make a large data screen
There are so many factors that imprison you
Some opinions and code implementation of Siou loss: more powerful learning for bounding box regression zhora gevorgyan
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
R language uses image of magick package_ Mosaic functions and images_ The flatten function stacks multiple pictures together to form a stack layers on top of each other
.NET MAUI 性能提升
The Oracle message permission under the local Navicat connection liunx is insufficient
STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
STM32 entry development uses IIC hardware timing to read and write AT24C08 (EEPROM)