tkinterdnd2 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tkinterdnd2-0.3.0 → tkinterdnd2-0.4.0}/LICENSE +21 -21
- tkinterdnd2-0.4.0/PKG-INFO +76 -0
- tkinterdnd2-0.4.0/README.md +63 -0
- {tkinterdnd2-0.3.0 → tkinterdnd2-0.4.0}/setup.cfg +4 -4
- {tkinterdnd2-0.3.0 → tkinterdnd2-0.4.0}/setup.py +26 -26
- tkinterdnd2-0.4.0/tests/test_tkinterdnd2.py +14 -0
- {tkinterdnd2-0.3.0 → tkinterdnd2-0.4.0}/tkinterdnd2/TkinterDnD.py +288 -292
- {tkinterdnd2-0.3.0 → tkinterdnd2-0.4.0}/tkinterdnd2/__init__.py +24 -25
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/libtkdnd2.9.3.so +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/pkgIndex.tcl +62 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/tkdnd.tcl +539 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/tkdnd_compat.tcl +160 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/tkdnd_generic.tcl +587 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/tkdnd_macosx.tcl +144 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/tkdnd_unix.tcl +883 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/tkdnd_utils.tcl +256 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-arm64/tkdnd_windows.tcl +167 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/libtkdnd2.9.4.so +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/pkgIndex.tcl +62 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/tkdnd.tcl +538 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/tkdnd_compat.tcl +160 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/tkdnd_generic.tcl +587 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/tkdnd_macosx.tcl +144 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/tkdnd_unix.tcl +883 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/tkdnd_utils.tcl +256 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/linux-x64/tkdnd_windows.tcl +167 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/libtkdnd2.9.3.dylib +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/pkgIndex.tcl +62 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/tkdnd.tcl +539 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/tkdnd_compat.tcl +160 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/tkdnd_generic.tcl +587 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/tkdnd_macosx.tcl +144 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/tkdnd_unix.tcl +883 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/tkdnd_utils.tcl +256 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-arm64/tkdnd_windows.tcl +167 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/libtkdnd2.9.4.dylib +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/pkgIndex.tcl +62 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/tkdnd.tcl +538 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/tkdnd_compat.tcl +160 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/tkdnd_generic.tcl +587 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/tkdnd_macosx.tcl +144 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/tkdnd_unix.tcl +883 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/tkdnd_utils.tcl +256 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/osx-x64/tkdnd_windows.tcl +167 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/libtkdnd2.9.3.dll +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/pkgIndex.tcl +62 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/tkdnd.tcl +539 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/tkdnd2.9.3.lib +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/tkdnd_compat.tcl +160 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/tkdnd_generic.tcl +587 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/tkdnd_macosx.tcl +144 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/tkdnd_unix.tcl +883 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/tkdnd_utils.tcl +256 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-arm64/tkdnd_windows.tcl +167 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/libtkdnd2.9.4.dll +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/pkgIndex.tcl +62 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd.tcl +538 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd2.9.3.lib +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd2.9.4.lib +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd_compat.tcl +160 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd_generic.tcl +587 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd_macosx.tcl +144 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd_unix.tcl +883 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd_utils.tcl +256 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x64/tkdnd_windows.tcl +167 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/libtkdnd2.9.4.dll +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/pkgIndex.tcl +62 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/tkdnd.tcl +538 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/tkdnd2.9.4.lib +0 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/tkdnd_compat.tcl +160 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/tkdnd_generic.tcl +587 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/tkdnd_macosx.tcl +144 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/tkdnd_unix.tcl +883 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/tkdnd_utils.tcl +256 -0
- tkinterdnd2-0.4.0/tkinterdnd2/tkdnd/win-x86/tkdnd_windows.tcl +167 -0
- tkinterdnd2-0.4.0/tkinterdnd2.egg-info/PKG-INFO +76 -0
- tkinterdnd2-0.4.0/tkinterdnd2.egg-info/SOURCES.txt +77 -0
- tkinterdnd2-0.3.0/PKG-INFO +0 -71
- tkinterdnd2-0.3.0/README.md +0 -54
- tkinterdnd2-0.3.0/tkinterdnd2.egg-info/PKG-INFO +0 -71
- tkinterdnd2-0.3.0/tkinterdnd2.egg-info/SOURCES.txt +0 -9
- {tkinterdnd2-0.3.0 → tkinterdnd2-0.4.0}/tkinterdnd2.egg-info/dependency_links.txt +0 -0
- {tkinterdnd2-0.3.0 → tkinterdnd2-0.4.0}/tkinterdnd2.egg-info/top_level.txt +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Philippe Gagné
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Philippe Gagné
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tkinterdnd2
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: TkinterDnD2 is a python wrapper for George Petasis'' tkDnD Tk extension version 2
|
|
5
|
+
Home-page: https://github.com/Eliav2/tkinterdnd2
|
|
6
|
+
Author: petasis\pmgagne\eliav2
|
|
7
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Requires-Python: >=3.6
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
|
|
14
|
+
## TkinterDnD2
|
|
15
|
+
|
|
16
|
+
[Eliav2/tkinterdnd2](https://github.com/Eliav2/tkinterdnd2) is a fork of the (unmaintained) [pmgagne/tkinterdnd2](https://github.com/pmgagne/tkinterdnd2) which is a python wrapper for [tkdnd](https://github.com/petasis/tkdnd) .
|
|
17
|
+
|
|
18
|
+
This repo was originally forked and edited for the purpose of publishing to pypi so one could simply install this package with `pip install tkinterdnd2`.
|
|
19
|
+
|
|
20
|
+
This repository is being maintained to ensure availability of `tkinterdnd2` into the future.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
`python -m pip install tkinterdnd2`
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import tkinter as tk
|
|
30
|
+
|
|
31
|
+
from tkinterdnd2 import DND_FILES, TkinterDnD
|
|
32
|
+
|
|
33
|
+
root = TkinterDnD.Tk() # notice - use this instead of tk.Tk()
|
|
34
|
+
|
|
35
|
+
lb = tk.Listbox(root)
|
|
36
|
+
lb.insert(1, "drag files to here")
|
|
37
|
+
|
|
38
|
+
# register the listbox as a drop target
|
|
39
|
+
lb.drop_target_register(DND_FILES)
|
|
40
|
+
lb.dnd_bind('<<Drop>>', lambda e: lb.insert(tk.END, e.data))
|
|
41
|
+
|
|
42
|
+
lb.pack()
|
|
43
|
+
root.mainloop()
|
|
44
|
+
```
|
|
45
|
+

|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
see any of the [demos](./demos) for usage examples.
|
|
49
|
+
|
|
50
|
+
# tkinterdnd2
|
|
51
|
+
|
|
52
|
+
Tkinter native drag and drop support for windows, unix and Mac OSX.
|
|
53
|
+
|
|
54
|
+
## What is TkinterDnD2
|
|
55
|
+
|
|
56
|
+
[TkinterDnD2](http://tkinterdnd.sourceforge.net) is a python wrapper for George Petasis' tkDnD Tk extension version 2.
|
|
57
|
+
|
|
58
|
+
It is a domain public project.
|
|
59
|
+
|
|
60
|
+
## What is TkDnD2
|
|
61
|
+
|
|
62
|
+
[tkDnD2](https://github.com/petasis/tkdnd) is a tcl/Tk extension adding native drag and drop support.
|
|
63
|
+
|
|
64
|
+
## What this repository is about
|
|
65
|
+
|
|
66
|
+
This repo package TkinterDnD2 and tkdnd2 into a standard python module.
|
|
67
|
+
|
|
68
|
+
When the extension is imported in python its location will be automatically added to the Tk search path.
|
|
69
|
+
|
|
70
|
+
This repository contains the compiled binaries from https://github.com/petasis/tkdnd/releases/tag/tkdnd-release-test-v2.9.4. In order to provide support on ARM, we include built binaries from the now defunct [tkinterdnd2-universal](https://pypi.org/project/tkinterdnd2-universal/#files) which added ARM support.
|
|
71
|
+
|
|
72
|
+
## pyinstaller
|
|
73
|
+
|
|
74
|
+
When using `pyinstaller`, you should use the hook-tkinterdnd2.py file included to collect the TkDnD binaries and build them into the project. To use it, copy it into the base directory of your project, then run pyinstaller as follows:
|
|
75
|
+
|
|
76
|
+
pyinstaller -F -w myproject/myproject.py --additional-hooks-dir=.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
## TkinterDnD2
|
|
2
|
+
|
|
3
|
+
[Eliav2/tkinterdnd2](https://github.com/Eliav2/tkinterdnd2) is a fork of the (unmaintained) [pmgagne/tkinterdnd2](https://github.com/pmgagne/tkinterdnd2) which is a python wrapper for [tkdnd](https://github.com/petasis/tkdnd) .
|
|
4
|
+
|
|
5
|
+
This repo was originally forked and edited for the purpose of publishing to pypi so one could simply install this package with `pip install tkinterdnd2`.
|
|
6
|
+
|
|
7
|
+
This repository is being maintained to ensure availability of `tkinterdnd2` into the future.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
`python -m pip install tkinterdnd2`
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
import tkinter as tk
|
|
17
|
+
|
|
18
|
+
from tkinterdnd2 import DND_FILES, TkinterDnD
|
|
19
|
+
|
|
20
|
+
root = TkinterDnD.Tk() # notice - use this instead of tk.Tk()
|
|
21
|
+
|
|
22
|
+
lb = tk.Listbox(root)
|
|
23
|
+
lb.insert(1, "drag files to here")
|
|
24
|
+
|
|
25
|
+
# register the listbox as a drop target
|
|
26
|
+
lb.drop_target_register(DND_FILES)
|
|
27
|
+
lb.dnd_bind('<<Drop>>', lambda e: lb.insert(tk.END, e.data))
|
|
28
|
+
|
|
29
|
+
lb.pack()
|
|
30
|
+
root.mainloop()
|
|
31
|
+
```
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
see any of the [demos](./demos) for usage examples.
|
|
36
|
+
|
|
37
|
+
# tkinterdnd2
|
|
38
|
+
|
|
39
|
+
Tkinter native drag and drop support for windows, unix and Mac OSX.
|
|
40
|
+
|
|
41
|
+
## What is TkinterDnD2
|
|
42
|
+
|
|
43
|
+
[TkinterDnD2](http://tkinterdnd.sourceforge.net) is a python wrapper for George Petasis' tkDnD Tk extension version 2.
|
|
44
|
+
|
|
45
|
+
It is a domain public project.
|
|
46
|
+
|
|
47
|
+
## What is TkDnD2
|
|
48
|
+
|
|
49
|
+
[tkDnD2](https://github.com/petasis/tkdnd) is a tcl/Tk extension adding native drag and drop support.
|
|
50
|
+
|
|
51
|
+
## What this repository is about
|
|
52
|
+
|
|
53
|
+
This repo package TkinterDnD2 and tkdnd2 into a standard python module.
|
|
54
|
+
|
|
55
|
+
When the extension is imported in python its location will be automatically added to the Tk search path.
|
|
56
|
+
|
|
57
|
+
This repository contains the compiled binaries from https://github.com/petasis/tkdnd/releases/tag/tkdnd-release-test-v2.9.4. In order to provide support on ARM, we include built binaries from the now defunct [tkinterdnd2-universal](https://pypi.org/project/tkinterdnd2-universal/#files) which added ARM support.
|
|
58
|
+
|
|
59
|
+
## pyinstaller
|
|
60
|
+
|
|
61
|
+
When using `pyinstaller`, you should use the hook-tkinterdnd2.py file included to collect the TkDnD binaries and build them into the project. To use it, copy it into the base directory of your project, then run pyinstaller as follows:
|
|
62
|
+
|
|
63
|
+
pyinstaller -F -w myproject/myproject.py --additional-hooks-dir=.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[egg_info]
|
|
2
|
-
tag_build =
|
|
3
|
-
tag_date = 0
|
|
4
|
-
|
|
1
|
+
[egg_info]
|
|
2
|
+
tag_build =
|
|
3
|
+
tag_date = 0
|
|
4
|
+
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import setuptools
|
|
2
|
-
|
|
3
|
-
with open("README.md", "r") as fh:
|
|
4
|
-
long_description = fh.read()
|
|
5
|
-
|
|
6
|
-
setuptools.setup(
|
|
7
|
-
name="tkinterdnd2",
|
|
8
|
-
version="0.
|
|
9
|
-
author="petasis\\pmgagne\\eliav2",
|
|
10
|
-
description="TkinterDnD2 is a python wrapper for George Petasis'' tkDnD Tk extension version 2",
|
|
11
|
-
long_description=long_description,
|
|
12
|
-
long_description_content_type="text/markdown",
|
|
13
|
-
url="https://github.com/Eliav2/tkinterdnd2",
|
|
14
|
-
packages=setuptools.find_packages(),
|
|
15
|
-
include_package_data=True,
|
|
16
|
-
package_data={
|
|
17
|
-
# Include tkdnd extension files.
|
|
18
|
-
"tkinterdnd2": ["tkdnd/
|
|
19
|
-
},
|
|
20
|
-
classifiers=[
|
|
21
|
-
"Development Status :: 2 - Pre-Alpha",
|
|
22
|
-
"Programming Language :: Python :: 3",
|
|
23
|
-
"License :: OSI Approved :: MIT License",
|
|
24
|
-
],
|
|
25
|
-
python_requires='>=3.6',
|
|
26
|
-
)
|
|
1
|
+
import setuptools
|
|
2
|
+
|
|
3
|
+
with open("README.md", "r") as fh:
|
|
4
|
+
long_description = fh.read()
|
|
5
|
+
|
|
6
|
+
setuptools.setup(
|
|
7
|
+
name="tkinterdnd2",
|
|
8
|
+
version="0.4.0",
|
|
9
|
+
author="petasis\\pmgagne\\eliav2",
|
|
10
|
+
description="TkinterDnD2 is a python wrapper for George Petasis'' tkDnD Tk extension version 2",
|
|
11
|
+
long_description=long_description,
|
|
12
|
+
long_description_content_type="text/markdown",
|
|
13
|
+
url="https://github.com/Eliav2/tkinterdnd2",
|
|
14
|
+
packages=setuptools.find_packages(),
|
|
15
|
+
include_package_data=True,
|
|
16
|
+
package_data={
|
|
17
|
+
# Include tkdnd extension files.
|
|
18
|
+
"tkinterdnd2": ["tkdnd/linux-x64/*.*", "tkdnd/linux-arm64/*.*", "tkdnd/osx-x64/*.*", "tkdnd/osx-arm64/*.*", "tkdnd/win-x64/*.*", "tkdnd/win-x86/*.*", "tkdnd/win-arm64/*.*"],
|
|
19
|
+
},
|
|
20
|
+
classifiers=[
|
|
21
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"License :: OSI Approved :: MIT License",
|
|
24
|
+
],
|
|
25
|
+
python_requires='>=3.6',
|
|
26
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
|
|
3
|
+
import tkinter
|
|
4
|
+
import tkinterdnd2
|
|
5
|
+
|
|
6
|
+
class TestStringMethods(unittest.TestCase):
|
|
7
|
+
|
|
8
|
+
def test_version(self):
|
|
9
|
+
root = tkinterdnd2.Tk()
|
|
10
|
+
root.withdraw()
|
|
11
|
+
self.assertEqual(root.TkdndVersion, '2.9.2')
|
|
12
|
+
|
|
13
|
+
if __name__ == '__main__':
|
|
14
|
+
unittest.main()
|