当前位置:网站首页>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)
边栏推荐
- Steps of redis installation and self startup configuration under CentOS system
- Have you ever met flick Oracle CDC, read a table without update operation, and read it repeatedly every ten seconds
- 问下flinkcdc2.2.0的版本,支持并发,这个并发是指多并行度吗,现在发现,mysqlcdc全
- . Net Maui performance improvement
- How much do you know about excel formula?
- 聊聊SOC启动(十) 内核启动先导知识
- [extraction des caractéristiques de texture] extraction des caractéristiques de texture de l'image LBP basée sur le mode binaire local de Matlab [y compris le code source de Matlab 1931]
- 清华姚班程序员,网上征婚被骂?
- STM32 entry development uses IIC hardware timing to read and write AT24C08 (EEPROM)
- When sink is consumed in mysql, the self incrementing primary key has been set in the database table. How to operate in Flink?
猜你喜欢
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
总结了200道经典的机器学习面试题(附参考答案)
【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
Explore cloud database of cloud services together
How to add aplayer music player in blog
核舟记(一):当“男妈妈”走进现实,生物科技革命能解放女性吗?
Cmu15445 (fall 2019) project 2 - hash table details
请查收.NET MAUI 的最新学习资源
《通信软件开发与应用》课程结业报告
随机推荐
Present pod information to the container through environment variables
STM32 entry development uses IIC hardware timing to read and write AT24C08 (EEPROM)
【滤波跟踪】捷联惯导纯惯导解算matlab实现
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
UP Meta—Web3.0世界创新型元宇宙金融协议
Software design - "high cohesion and low coupling"
超标量处理器设计 姚永斌 第9章 指令执行 摘录
博客搬家到知乎
CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解
Use metersphere to keep your testing work efficient
Steps of redis installation and self startup configuration under CentOS system
[filter tracking] strapdown inertial navigation simulation based on MATLAB [including Matlab source code 1935]
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
Flet教程之 16 Tabs 选项卡控件 基础入门(教程含源码)
Half of the people don't know the difference between for and foreach???
正在运行的Kubernetes集群想要调整Pod的网段地址
Easyui学习整理笔记
Briefly introduce closures and some application scenarios
Camera calibration (1): basic principles of monocular camera calibration and Zhang Zhengyou calibration
Suggestions on one-stop development of testing life