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.

classification
Title: idlelib/PyShell.py: incorrect module name reported in error message: Tkinter should be tkinter
Type: Stage: resolved
Components: IDLE Versions: Python 3.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: denversc, ezio.melotti
Priority: normal Keywords: patch

Created on 2011-04-03 02:52 by denversc, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
patch_idle_tkinter_import_v1.patch denversc, 2011-04-03 02:53 patch based from trunk at changeset 053bc5ca199b review
Messages (3)
msg132828 - (view) Author: Denver Coneybeare (denversc) * Date: 2011-04-03 02:52
Just a very minor bug.  The error message in idlelib/PyShell.py that is printed when importing tkinter fails says that it failed to import "Tkinter", but the actual module name is "tkinter" (with a lowercase t).  

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

A patch is attached.
msg132829 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-04-03 03:00
I think in this case "Tkinter" refers to the "Tkinter" library, rather than the "tkinter" module.
msg132836 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-04-03 14:02
I'm going to reject this, thanks anyway for the patch!
History
Date User Action Args
2022-04-11 14:57:15adminsetgithub: 55954
2011-04-03 14:02:26ezio.melottisetstatus: open -> closed
resolution: not a bug
messages: + msg132836

stage: resolved
2011-04-03 03:00:20ezio.melottisettype: behavior ->

messages: + msg132829
nosy: + ezio.melotti
2011-04-03 02:54:00denverscsettype: behavior
2011-04-03 02:53:49denverscsetfiles: + patch_idle_tkinter_import_v1.patch
keywords: + patch
2011-04-03 02:52:34denversccreate