当前位置:网站首页>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
边栏推荐
- 服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
- RLock锁的使用
- Pspnet | semantic segmentation and scene analysis
- Cartoon: what is MapReduce?
- Convert obj set to entity set
- 《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md
- Today's sleep quality record 79 points
- 【刷题篇】鹅厂文化衫问题
- 清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
- List uses stream flow to add according to the number of certain attributes of the element
猜你喜欢
Oneforall installation and use
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存
Use of RLOCK lock
今日睡眠质量记录79分
ES6 drill down - Async functions and symbol types
[Netease Yunxin] research and practice of super-resolution technology in the field of real-time audio and video
如何将mysql卸载干净
解决CMakeList find_package找不到Qt5,找不到ECM
Migrate /home partition
2020-2022两周年创作纪念日
随机推荐
Win11如何给应用换图标?Win11给应用换图标的方法
sql中set标签的使用
极坐标扇图使用场景与功能详解
求解汉诺塔问题【修改版】
效果编辑器新版上线!3D渲染、加标注、设置动画,这次一个编辑器就够了
Enterprise backup software Veritas NetBackup (NBU) 8.1.1 installation and deployment of server
程序员如何提升自己的格局?
Cartoon: what is service fusing?
Record a 'very strange' troubleshooting process of cloud security group rules
Intel 13th generation Raptor Lake processor information exposure: more cores, larger cache
一些認知的思考
利用GrayLog告警功能实现钉钉群机器人定时工作提醒
The difference between searching forward index and inverted index
面对新的挑战,成为更好的自己--进击的技术er
一键安装脚本实现快速部署GrayLog Server 4.2.10单机版
PSPNet | 语义分割及场景分析
养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪
中间表是如何被消灭的?
降本40%!Redis多租户集群的容器化实践
抽象类中子类与父类