Timestamps 0:00 Intro 1:44 How/Where to Download TkinterDnD2 (what you most likely came for) 5:11 Creating a GUI application using TkinterDnD2 12:23 Demonstrating the GUI application Links to the stackoverflow answer and download locations are in the description
Ramon, thank you for the video! A question to you, have you tried to compile the script of yours? As long as I work with IDLE everything goes well, but if I make an exe file and try to run it, I always get the "cannot run the script" error. I even tried to compile and run the orignal source code from Stack Overflow (5:04) and even then I get the mentioned error message. I am interested in your opinion about the thing. Thanks in advance!
Hello, I followed the instructions on StackOverflow and this video directly multiple times on Windows 10 x64, and the app simply is not recognizing the files dragged into it. There's no event firing, and the mouse icon is just the circle/slash (invalid), not a "plus" icon or anything like that. No one else seems to be having any trouble, which is puzzling me. Any ideas? To update- I found I am able to drag/drop files if I drag them from the Spyder (my Python IDE)'s File --> Open dialogue box, but I cannot drag/drop from Windows Explorer.
Hey, I had the same error. But when I launch Python app from a console in PHPStrom or when I open a program without a console only by double-clicking the at app, this work.
Cool video. I did everything as you showed in the video and it worked perfectly! There is however 1 issue I came across. When I wanted to make my app portable by creating an .exe of it using pyinstaller, it compiled fine, but when running the app it returned the error "RuntimeError: Unable to load tkdnd library." The app runs just fine when using python to run it. Any idea how I can tell pyinstaller where to find the tkdnd library?
Hi CryptoNL, I havent done this myself but might have found a resource that could help. From a quick online search you can try to implement something similar to the below github.com/pmgagne/tkinterdnd2/blob/master/hook-tkinterdnd2.py Maybe the below snippet would help for you if you create a hook file in your directory: from PyInstaller.utils.hooks import collect_data_files, eval_statement datas = collect_data_files('TkinterDnD2',include_py_files=True)
@@RamonWilliams Hey, I`ve got the same error as the guy above, I did try what you suggested, however pyinstaller still can`t load tkdnd library, do you have any ideas on how to solve it?
Hi there. Thanks for the video. How can I automatically convert the location of the file as a text? Imagine I drop this folder to the list box "C:\Users\windows\Desktop\tooling" I want it automatically convert it to "%UserProfile%\windows\Desktop\tooling"
Following your instruction, but I cannot import TkinterDnD2, TkinterDND into Pycharm as video. I copied files to C:\Users\Owner\AppData\Local\Programs\Python\Python38-32 (not Python 37 as video). Is it problem here sir?
@@RamonWilliams I think that is TkinterDnD2, TkinterDnD installation error. Error description is as below: ModuleNotFoundError: No module named 'TkinterDnD2'
Timestamps
0:00 Intro
1:44 How/Where to Download TkinterDnD2 (what you most likely came for)
5:11 Creating a GUI application using TkinterDnD2
12:23 Demonstrating the GUI application
Links to the stackoverflow answer and download locations are in the description
And how do you install it for linux?
Ramon, thank you for the video! A question to you, have you tried to compile the script of yours? As long as I work with IDLE everything goes well, but if I make an exe file and try to run it, I always get the "cannot run the script" error. I even tried to compile and run the orignal source code from Stack Overflow (5:04) and even then I get the mentioned error message. I am interested in your opinion about the thing. Thanks in advance!
Awesome man, this my 3rd sem project 🥲. Two semesters I wasted playing valorant instead of listening to online classes.
Thank you very much for this video, it helped me a lot
You are welcome!
Hello, I followed the instructions on StackOverflow and this video directly multiple times on Windows 10 x64, and the app simply is not recognizing the files dragged into it. There's no event firing, and the mouse icon is just the circle/slash (invalid), not a "plus" icon or anything like that. No one else seems to be having any trouble, which is puzzling me. Any ideas?
To update- I found I am able to drag/drop files if I drag them from the Spyder (my Python IDE)'s File --> Open dialogue box, but I cannot drag/drop from Windows Explorer.
Same. Those are probably fake accounts. The sound of the video is distorted. Probably plagiarized.
Hey, I had the same error. But when I launch Python app from a console in PHPStrom or when I open a program without a console only by double-clicking the at app, this work.
Hey! Thank you. Just wanted to drop a comment for the YT algo.
Great video! I have a question, can you do the same with 2 listboxes?
Thank you so much!, it really helped me a lot
You're welcome!
Not working on Mac M1 :(
Wonderful mate, thank you a lot!
no problem, im glad it helped!
thanks a lot for the vid had to look at it like the 10th time because of a new python version 😂
Did this work for you? List box is working for me but not the text box. I don’t understand where the issue is.
i am getting urls like covered with {} ex: {D:/Shiva/test/New folder/file.docx} i don't want {}. what should i do?
Very helpful video on how to install thanks bro
You are welcome
Cool video. I did everything as you showed in the video and it worked perfectly! There is however 1 issue I came across. When I wanted to make my app portable by creating an .exe of it using pyinstaller, it compiled fine, but when running the app it returned the error "RuntimeError: Unable to load tkdnd library." The app runs just fine when using python to run it.
Any idea how I can tell pyinstaller where to find the tkdnd library?
Hi CryptoNL,
I havent done this myself but might have found a resource that could help. From a quick online search you can try to implement something similar to the below
github.com/pmgagne/tkinterdnd2/blob/master/hook-tkinterdnd2.py
Maybe the below snippet would help for you if you create a hook file in your directory:
from PyInstaller.utils.hooks import collect_data_files, eval_statement
datas = collect_data_files('TkinterDnD2',include_py_files=True)
@@RamonWilliams Hey, I`ve got the same error as the guy above, I did try what you suggested, however pyinstaller still can`t load tkdnd library, do you have any ideas on how to solve it?
Hi there. Thanks for the video. How can I automatically convert the location of the file as a text? Imagine I drop this folder to the list box "C:\Users\windows\Desktop\tooling" I want it automatically convert it to "%UserProfile%\windows\Desktop\tooling"
awesome, thanks
does this work with excel files? thank you
Thank you so much.
Bro, it works perfectly but When I convert py to exe so it gives me an error..
Can u help me......
Following your instruction, but I cannot import TkinterDnD2, TkinterDND into Pycharm as video. I copied files to C:\Users\Owner\AppData\Local\Programs\Python\Python38-32 (not Python 37 as video). Is it problem here sir?
Hi Sy,
I don't believe it should be a problem. what is the error that you received?
@@RamonWilliams I think that is TkinterDnD2, TkinterDnD installation error. Error description is as below:
ModuleNotFoundError: No module named 'TkinterDnD2'
@@sydinh9451 Hi, you have to install tkinterDnD2 in pycharm otherwise you need to run it on (cmd)
@@HelloKitty-ky6yc many thanks indeed. I got it
@@sydinh9451 Do you still remember how you fixed your issue?
noice