Serhiy Storchaka added the comment:
IMHO Tcl and Tk should be in title case (as Python or Django) or at least all
in upper case (as APL or SDL).
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24759
Serhiy Storchaka added the comment:
I don't see any mentions of ttk in IDLE source code except added check. Is ttk
really required for IDLE?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24759
Terry J. Reedy added the comment:
Re-opened for tweak.
This patch, to exit gracefully if ttk is not available, is the first step
before using ttk in Idle. Mark, a long-time tk/ttk expert and site/book
author, has volunteered to help upgrade Idle with ttk. Please see ttk in idle
on Idle-Sig
Terry J. Reedy added the comment:
I tested by renaming installed 3.5 ttk, editing 3.5 PyShell with 3.4, and
clicking 3.5 icon.
--
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24759
Mark Roseman added the comment:
Sounds good. Only suggestion, given it's user facing, is to have the error
message point them towards a solution. Off the top of my head, maybe something
like IDLE requires Python be configured to use Tk 8.5 or newer (you have Tk
x.x) with a title of IDLE
New submission from Terry J. Reedy:
PyShell currently has this code
try:
from tkinter import *
except ImportError:
print(** IDLE can't import Tkinter.\n
Your Python may not be configured for Tk. **, file=sys.__stderr__)
sys.exit(1)
import tkinter.messagebox as tkMessageBox
Terry J. Reedy added the comment:
Improved message. Thanks. Should be good enough for the extremely few times
it should ever be triggered.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker
Roundup Robot added the comment:
New changeset 8203fc75b3d2 by Terry Jan Reedy in branch '2.7':
Issue 24759: Gracefull exit Idle if ttk import fails.
https://hg.python.org/cpython/rev/8203fc75b3d2
New changeset 13a8782a775e by Terry Jan Reedy in branch '3.4':
Issue 24759: Gracefull exit Idle if