tkinterDnD
tkinterDnD copied to clipboard
DnD and modal windows
When a modal window displays (e.g. messagebox) whilst the parent window widgets are disabled, it is still possible to dnd into the parent window.
Attached is your example from the PyPi website. I have added two buttons:
- The "Press Test" button prints 'Hi' to show it is active.
- The "Call messagebox" button invokes a messagebox.
Invoke the messagebox, now drag filenames to your dnd enabled area. DnD does not comply with the behaviour of other tk widgets, which are disabled by the invocation of the modal (messagebox) window.
Kind regards Issue with DnD and modal windows.txt