dnd.py 306 B

123456789101112
  1. from __future__ import absolute_import
  2. from future.utils import PY3
  3. if PY3:
  4. from tkinter.dnd import *
  5. else:
  6. try:
  7. from Tkdnd import *
  8. except ImportError:
  9. raise ImportError('The Tkdnd module is missing. Does your Py2 '
  10. 'installation include tkinter?')