Skip to main content

nicegui补充组件

Project description

NiceGUI 补充 / Adds

补充NiceGUI未实现的一些组件

在使用NiceGUI的过程中,我查阅了组件库文档和quasarchs文档,但突然发现有些组件竟然没有实现,如BreadCrumbs,感觉还是挺重要的,就专门创了一个项目

安装 / Installation

# nicegui>=1.4.0
pip install nicegui-add

构建 / Build

本库是使用Poetry构建,更多需查询官方文档

poetry build
poetry publish --build

文档构建 / Documents Build

文档是使用Sphinx构建

cd docs
python make.py

make.py

import os

make = "make.bat "

os.system(make + "clear")
os.system(make + "html")

组件 / Elements

Breadcrumbs 面包屑

类似于文件管理器上的导航栏

用法 / Usage

aui.breadcrumbs(separator: str = ...)
  • separator为每个元件BreadcrumbsEl之间的隔开符,默认是/
aui.breadcrumbs_el(text: str = ..., icon: str = ..., on_click=...)
  • text为显示文本
  • icon为显示图标
  • on_click为被点击时的事件

例子 / Example

from nicegui import ui
from nicegui_add import aui

with aui.breadcrumbs():
    aui.breadcrumbs_el("Home", icon="home", on_click=lambda: print("'Home' Clicked"))
    aui.breadcrumbs_el("System", icon="windows", on_click=lambda: print("'Windows' Clicked"))
    aui.breadcrumbs_el("Apps", icon="apps", on_click=lambda: print("'Apps' Clicked"))
    
ui.run()

开发笔记 / Development Notes

选择存储库平台时,我本来是打算用Github的,但是Github的登录特别繁琐,干脆改用Gitlab算了,而且Gitlab在中国地区可以正常访问,而不像Github一样,老是登不上去

版本记录 / Version Records

0.0.1

0011 第一次发布,包含 bar, breadcrumbs, breadcrumbs_el, space, toolbar, toolbar_title组件

0.0.2

0021 补充项目资料

0022 添加组件Intersection / 交叉,可以为ui.Card组件做显示效果

0.0.3

0031 补充项目资料

0.0.4

0041 添加组件ButtonGroup / 按钮组

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nicegui_add-0.0.4.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nicegui_add-0.0.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file nicegui_add-0.0.4.tar.gz.

File metadata

  • Download URL: nicegui_add-0.0.4.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.9 Windows/10

File hashes

Hashes for nicegui_add-0.0.4.tar.gz
Algorithm Hash digest
SHA256 28dd0f705ffd838d70a9f67599b49f44b2a12c1a9e5604ea56c54579defee05c
MD5 de66afdf8974f54af0cf53c9a5f2150d
BLAKE2b-256 bbb5b93e601aa7753ab69debb2e272a6fe4d5f2455a876ae31212ae853387270

See more details on using hashes here.

File details

Details for the file nicegui_add-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: nicegui_add-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.9 Windows/10

File hashes

Hashes for nicegui_add-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4922b59af1486f14af6d18cb1e4c7e47b35d47f50b09108b33bf6c126db26150
MD5 2f28e72021f7ae79b17d394e9ddbb136
BLAKE2b-256 6863ee9f51a17644a51ad5d540d86e3612ed329c803e352090932fc6fa8f6675

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page