当前位置:网站首页>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)
边栏推荐
- Various uses of vim are very practical. I learned and summarized them in my work
- Electron adding SQLite database
- Onedns helps college industry network security
- Camera calibration (2): summary of monocular camera calibration
- How to connect 5V serial port to 3.3V MCU serial port?
- Le Cluster kubernets en cours d'exécution veut ajuster l'adresse du segment réseau du pod
- STM32 entry development write DS18B20 temperature sensor driver (read ambient temperature, support cascade)
- Easyui学习整理笔记
- Have you ever met flick Oracle CDC, read a table without update operation, and read it repeatedly every ten seconds
- Talk about SOC startup (x) kernel startup pilot knowledge
猜你喜欢
The Oracle message permission under the local Navicat connection liunx is insufficient
Camera calibration (2): summary of monocular camera calibration
聊聊SOC启动(十一) 内核初始化
【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)
Flet教程之 15 GridView 基础入门(教程含源码)
[filter tracking] strapdown inertial navigation simulation based on MATLAB [including Matlab source code 1935]
一度辍学的数学差生,获得今年菲尔兹奖
Matlab implementation of Huffman coding and decoding with GUI interface
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
超标量处理器设计 姚永斌 第9章 指令执行 摘录
随机推荐
Visual Studio 2019 (LocalDB)\MSSQLLocalDB SQL Server 2014 数据库版本为852无法打开,此服务器支持782版及更低版本
Swiftui swift internal skill: five skills of using opaque type in swift
Automated testing framework
Electron adding SQLite database
NPC Jincang was invited to participate in the "aerospace 706" I have an appointment with aerospace computer "national Partner Conference
【最短路】Acwing1128信使:floyd最短路
.NET MAUI 性能提升
聊聊SOC启动(十一) 内核初始化
竟然有一半的人不知道 for 与 foreach 的区别???
UP Meta—Web3.0世界创新型元宇宙金融协议
请查收.NET MAUI 的最新学习资源
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
Excel公式知多少?
禁锢自己的因素,原来有这么多
R语言使用magick包的image_mosaic函数和image_flatten函数把多张图片堆叠在一起形成堆叠组合图像(Stack layers on top of each other)
MATLAB实现Huffman编码译码含GUI界面
《论文阅读》Neural Approaches to Conversational AI(1)
STM32入门开发 采用IIC硬件时序读写AT24C08(EEPROM)
Easyui学习整理笔记
R language uses the quantile function to calculate the quantile of the score value (20%, 40%, 60%, 80%), uses the logical operator to encode the corresponding quantile interval (quantile) into the cla