当前位置:网站首页>Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
Fleet tutorial 09 basic introduction to navigationrail (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? NavigationRail
A material widget , Designed to be displayed on the left or right side of the application , To navigate between a few views , Usually between three and five .
Combat code
import flet
from flet import (
AppBar,
Icon,
IconButton,
Page,
PopupMenuButton,
PopupMenuItem,
Text,
colors,
icons,
)
def main(page: Page):
def check_item_clicked(e):
e.control.checked = not e.control.checked
page.update()
page.appbar = AppBar(
leading=Icon(icons.PALETTE),
leading_width=40,
title=Text("AppBar Example"),
center_title=False,
bgcolor=colors.SURFACE_VARIANT,
actions=[
IconButton(icons.WB_SUNNY_OUTLINED),
IconB
边栏推荐
猜你喜欢
BS-XX-042 基于SSM实现人事管理系统
怎样在电脑上设置路由器的WiFi密码
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存
用键盘输入一条命令
2020-2022两周年创作纪念日
《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough
如何将mysql卸载干净
The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
随机推荐
如何将mysql卸载干净
BS-XX-042 基于SSM实现人事管理系统
Use of set tag in SQL
StarkWare:欲构建ZK“宇宙”
How does win11 change icons for applications? Win11 method of changing icons for applications
[deep learning] [original] let yolov6-0.1.0 support the txt reading dataset mode of yolov5
【毕业季】作为一名大二计科在校生,我有话想说
Pits encountered in the use of boolean type in development
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
Batch update in the project
The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md
Exception com alibaba. fastjson. JSONException: not match : - =
How was the middle table destroyed?
树莓派4b安装Pytorch1.11
怎样在电脑上设置路由器的WiFi密码
Reduce the cost by 40%! Container practice of redis multi tenant cluster
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Pspnet | semantic segmentation and scene analysis