Skip to main content

windows drag icon & drop to load absolute file path

Project description

pywindnd

A widget of tkinter, windows drag icon & drop to load absolute file path.

Installation

clone:

$ git clone https://github.com/D-Ayden/pywindnd.git
$ cd pywindnd

create & activate virtual env then install dependency: with venv/virtualenv + pip:

$ python -m venv env  # use `virtualenv env` for Python2, use `python3 ...` for Python3 on Linux & macOS
$ source env/bin/activate  # use `env\Scripts\activate` on Windows
$ pip install -r requirements.txt or pip download -r requirements.txt

or with pdm:

$ pdm install

Usage

try:
    import tkinter
except:
    import Tkinter as tkinter

import windnd

tk = tkinter.Tk()
windnd.drop_files(tk)
tk.mainloop()

若文件路径过深过长时,可手动调整 buffer 初始值

try:
    import tkinter
except:
    import Tkinter as tkinter

import windnd

tk = tkinter.Tk()
windnd.drop_files(tk, init=520)
tk.mainloop()

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

pywindnd-1.0.9.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

pywindnd-1.0.9-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pywindnd-1.0.9.tar.gz.

File metadata

  • Download URL: pywindnd-1.0.9.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.1.3 CPython/3.10.2

File hashes

Hashes for pywindnd-1.0.9.tar.gz
Algorithm Hash digest
SHA256 8a3f6abe9d4219e299d95d65784313105eb73b4eca8b80fe9384b3302852e49f
MD5 9dbade0f8eec2f9a3ef5f36c67a44905
BLAKE2b-256 56c59d8b47547f7444828b6d373f73afb3f704621c07d28f3e7e479a9609cf93

See more details on using hashes here.

File details

Details for the file pywindnd-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: pywindnd-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.1.3 CPython/3.10.2

File hashes

Hashes for pywindnd-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 726e16b221f64370fdc02b45245848e479e4cc77d52a028cfd3a9e08f6b9a9c6
MD5 9ae9d67df758d9fb9a32e175b53a0395
BLAKE2b-256 3ad9bf8137cd723138972e9521d25af22b555666809e29b377e636a4bc5a3b8e

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