Skip to main content

Dropzone control for Flet

Project description

Flet Dropzone control

Dropzone control for Flet integrating desktop_drop

Installation

pip install flet-dropzone

Please build once before running.

for windows user:

flet build windows -v

for macOS user:

flet build macos -v

for linux user:

flet build linux -v

for web user:

flet build web -v

Example

import flet as ft

import flet_dropzone as ftd


def main(page: ft.Page):
    page.vertical_alignment = ft.MainAxisAlignment.CENTER
    page.horizontal_alignment = ft.CrossAxisAlignment.CENTER

    page.add(
        ftd.Dropzone(
            content=ft.Container(
                ft.Text("Drop here!"),
                width=500,
                height=500,
                alignment=ft.Alignment.CENTER,
                bgcolor="red",
            ),
            on_dropped=lambda e: print(f"Dropped: {e.files}"),
            on_entered=lambda e: print("Entered"),
            on_exited=lambda e: print("Exited"),
        )
    )


ft.run(main)

References

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

flet_dropzone-0.3.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

flet_dropzone-0.3.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file flet_dropzone-0.3.1.tar.gz.

File metadata

  • Download URL: flet_dropzone-0.3.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for flet_dropzone-0.3.1.tar.gz
Algorithm Hash digest
SHA256 cce78c811802196ae6f595c59b55cf7b49f815dda44139f33fc23f3da4576d47
MD5 42e67027ea6ebbd902aa41442ac592c6
BLAKE2b-256 8a2af7a0752e389f0b79ef3ab3f738f03c054a18d672ae889cd30b717a7601b9

See more details on using hashes here.

File details

Details for the file flet_dropzone-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: flet_dropzone-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for flet_dropzone-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5048725e4aceac97e63b45b450864d89bd67a549f8a9990e0a03e8726ed2f2c
MD5 184ae0d16b514a3d1f840a3314027d37
BLAKE2b-256 2919eb7830dd6af93c9ce0771fe71c996ba9c9373c425228c7f090aafa594444

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