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 flet
import fleter


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

flet.app(target=build)

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

import flet
import fleter


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)

ComboBox

用于简化Dropdown的开发过程,option可以使用列表设置,如["Hello", "World"]

import flet
import fleter


def build(page: flet.Page):
    page.add(fleter.ComboBox(options=["Hello", "World"]))
    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.8.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

fleter-0.0.8-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fleter-0.0.8.tar.gz
  • Upload date:
  • Size: 5.8 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.8.tar.gz
Algorithm Hash digest
SHA256 e791a237228afa30d5ffce9edd148091f99092adee73e1a11ef5c0c04683a416
MD5 3c225d6f0e46dbe70087a41b7e1c8b54
BLAKE2b-256 805d3a35cfba399ce045a8217b3fe2e55b7d0c0d4b480655da48afe6927c626c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fleter-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 36f35aff35747f21dc286bfc85379476148d460f488b3ae0920e011705d02a0c
MD5 b27aec38039657dfd9716b8cb627b9cc
BLAKE2b-256 c3b1a2f061a008d55c242abe3daa394dd514d2d9b128157ade7e5bdac8847d13

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