This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients markroseman, terry.reedy
Date 2015-07-30.22:18:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
PyShell currently has this code

    from tkinter import *
except ImportError:
    print("** IDLE can't import Tkinter.\n"
          "Your Python may not be configured for Tk. **", file=sys.__stderr__)
import tkinter.messagebox as tkMessageBox

When Idle is started from an icon, there is no place for the error message to go, so it appears than nothing happens.  But this is the best we can do without invoking system specific error message functions.  (This, if possible, would be another issue.) The second import assumes that messagebox is available, which is should be without modification of the tkinter package since long ago.  But I think we should guard against someone trying to start Idle on pre 8.5.  The following seems to work nicely.  This is a prerequisite for any ttk patches.  Any comment before I apply?

    from tkinter import ttk
    root = Tk()
    tkMessageBox.showerror("Fatal Idle Import Error",
            "Idle cannot import required module tkinter.ttk.\n"
            "Click OK to exit.",
Date User Action Args
2015-07-30 22:18:35terry.reedysetrecipients: + terry.reedy, markroseman
2015-07-30 22:18:35terry.reedysetmessageid: <>
2015-07-30 22:18:35terry.reedylinkissue24759 messages
2015-07-30 22:18:35terry.reedycreate