diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-10-04 04:31:05 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-10-04 04:31:05 (GMT) |
commit | be5b7a24371008d6ddc811e90e33e9c1895f9681 (patch) | |
tree | 56aa6a7d38d6b155de58181ed2b2f1c491693470 /Lib/idlelib/configDialog.py | |
parent | 841d9ee41a8ad0a8a372f9b84f0fa40b07bcc66b (diff) | |
download | cpython-be5b7a24371008d6ddc811e90e33e9c1895f9681.zip cpython-be5b7a24371008d6ddc811e90e33e9c1895f9681.tar.gz cpython-be5b7a24371008d6ddc811e90e33e9c1895f9681.tar.bz2 |
Issue #24820: Add 'IDLE Dark' text color theme, warning, and solution.
Diffstat (limited to 'Lib/idlelib/configDialog.py')
-rw-r--r-- | Lib/idlelib/configDialog.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py index b987293..94a9fb8 100644 --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -507,6 +507,20 @@ class ConfigDialog(Toplevel): def VarChanged_builtinTheme(self, *params): value = self.builtinTheme.get() + if value == 'IDLE Dark': + tkMessageBox.showwarning( + title="The 'IDLE Dark' Text Color Theme", + message="IDLE Dark is new in October, 2015. Trying to " + "run earlier versions of IDLE with it selected " + "will disable colorizing, or worse.\n\n" + "If you might ever run an earlier release of IDLE, " + "then before exiting this version, " + "either switch to another theme or " + "hit the 'Save as New Custom Theme' button. " + "The latter requires a new name, such as " + "'Custom Dark', but the custom theme will work " + "with any IDLE release, and can be modified.", + parent=self) self.AddChangedItem('main', 'Theme', 'name', value) self.PaintThemeSample() |