当前位置:网站首页>Flet教程之 09 NavigationRail 基础入门(教程含源码)
Flet教程之 09 NavigationRail 基础入门(教程含源码)
2022-07-05 15:47:00 【知识大胖】
Flet是什么
Flet 是一个框架,使您能够轻松地以您喜欢的语言构建实时 Web、移动和桌面应用程序,并与您的团队安全地共享它们。无需前端经验。
什么是NavigationRail
一种材质小部件,旨在显示在应用程序的左侧或右侧,以在少量视图之间导航,通常在三到五个之间。
实战代码
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
边栏推荐
- Defining strict standards, Intel Evo 3.0 is accelerating the upgrading of the PC industry
- 定义严苛标准,英特尔Evo 3.0正在加速PC产业升级
- 研发效能度量指标构成及效能度量方法论
- list集合根据对象某属性求和,最大值等
- 我们为什么要学习数学建模?
- 10 minutes to help you get ZABBIX monitoring platform alarm pushed to nail group
- Single merchant v4.4 has the same original intention and strength!
- 单商户 V4.4,初心未变,实力依旧!
- Cs231n notes (medium) -- applicable to 0 Foundation
- 数据湖(十四):Spark与Iceberg整合查询操作
猜你喜欢
ES6 deep - ES6 class class
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
视觉体验全面升级,豪威集团与英特尔Evo 3.0共同加速PC产业变革
Parameter type setting error during batch update in project SQL
The difference between abstract classes and interfaces
List de duplication and count the number
Li Kou today's question -729 My schedule I
Quick completion guide for manipulator (IX): forward kinematics analysis
五种常见的咨询公司谈判策略以及如何维护自己的利益
超分辨率技术在实时音视频领域的研究与实践
随机推荐
Six common transaction solutions, you sing, I come on stage (no best, only better)
List uses stream flow to add according to the number of certain attributes of the element
20.[STM32]利用超声波模块和舵机实现智能垃圾桶功能
不敢买的思考
Five common negotiation strategies of consulting companies and how to safeguard their own interests
Li Kou today's question -729 My schedule I
Using graylog alarm function to realize the regular work reminder of nail group robots
Research and development efficiency measurement index composition and efficiency measurement methodology
[vulnerability warning] cve-2022-26134 conflict Remote Code Execution Vulnerability POC verification and repair process
DeSci:去中心化科学是Web3.0的新趋势?
16. [stm32] starting from the principle, I will show you the DS18B20 temperature sensor - four digit digital tube displays the temperature
Pits encountered in the use of boolean type in development
【毕业季】作为一名大二计科在校生,我有话想说
The OBD deployment mode of oceanbase Community Edition is installed locally
Background system sending verification code function
Quick completion guide for manipulator (IX): forward kinematics analysis
Research and practice of super-resolution technology in the field of real-time audio and video
How can programmers improve their situation?
开发中Boolean类型使用遇到的坑
抽象类和接口的区别