tkinterDnD icon indicating copy to clipboard operation
tkinterDnD copied to clipboard

DnD and modal windows

Open JohnSchroder opened this issue 2 years ago • 0 comments

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

JohnSchroder avatar Jun 26 '23 22:06 JohnSchroder