messagebox.py 327 B

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