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

Build the library before running the script.

for windows user:

flet build windows -v

for macOS user:

flet build macos -v

for linux user:

flet build linux -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.app(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.2.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

flet_dropzone-0.2.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flet_dropzone-0.2.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.4

File hashes

Hashes for flet_dropzone-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f3ad20e1247f95d7543bf1d2b0115b096b09f9177e6c30c0b13898609e21b88d
MD5 6f3b8d6fd74e80c84eb0d6abb6f2ddac
BLAKE2b-256 6e17d2eeb998cdbe0ed4e739e866721ccb69fea176af17cfe6c4648d54bab3ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flet_dropzone-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19b04960cb285496106ece6efc9cdf68370075e2a42c0bd5fc4e29126841cdbc
MD5 321acaefc5515f1b8450ae3cf269db44
BLAKE2b-256 8ee4560a469768e42a28e7a9a750fd31ace182350d3f17af938b6deecd869643

See more details on using hashes here.

Supported by

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