Skip to main content

flet extension library

Project description

fleter

一个flet的扩展组件库,提供一些常用组件及功能。

SwichThemeButton

用于快速切换窗口主题的图标按钮组件。

常规

import flet
import fleter

def main(page: flet.Page):
    swich_theme_button = fleter.SwichThemeButton(page)
    page.add(
        swich_theme_button
    )
    page.update()

flet.app(target=main)

无系统主题选项

import flet
import fleter

def main(page: flet.Page):
    swich_theme_button = fleter.SwichThemeButton(page, has_system=False)
    page.add(
        swich_theme_button
    )
    page.update()

flet.app(target=main)

HeaderBar

用于快速设置窗口标题栏。

常规

import fleter
import flet


def build(page: flet.Page):
    titlebar = fleter.HeaderBar(page, title="Hello World")
    page.add(
        titlebar
    )
    page.update()

flet.app(target=build)

标题栏靠左-切换主题按钮

import fleter
import flet


def build(page: flet.Page):
    titlebar = fleter.HeaderBar(page, title="Hello World", title_align="left")
    titlebar.controls.insert(1, fleter.SwichThemeButton(page))
    page.add(
        titlebar
    )
    page.update()

flet.app(target=build)

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

fleter-0.0.6.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

fleter-0.0.6-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file fleter-0.0.6.tar.gz.

File metadata

  • Download URL: fleter-0.0.6.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for fleter-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a53966565e4445e8fb3ff55a71fd614ca8852d7b8e3a5dc265d27a47fdf0f16a
MD5 da117fd2c1fd9f8a3096780c772ab499
BLAKE2b-256 069343bce7903b92331ec760bec9ae95087fed658d06d91db6337f2cd8197f20

See more details on using hashes here.

File details

Details for the file fleter-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: fleter-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for fleter-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 912d3ae4bad0fa5dd59d2762a147ba58d395b3775d71d28b80ef717c7db0a86a
MD5 285e226adc30e90ee47356d07d295e63
BLAKE2b-256 d90c7a5657fa14b8dd032c1c76cbbd011ab0d732a78ac5ca3042f016f85ed39b

See more details on using hashes here.

Supported by

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