diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-10-04 04:30:59 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-10-04 04:30:59 (GMT) |
| commit | 9f37eae9cc923407a455cdd615de01112f0aa80b (patch) | |
| tree | 25e9ce24ea6a125bc9cde2f66fd99bf2d61830c5 /Lib/idlelib/configDialog.py | |
| parent | fcf58a151824d9af5962248fc176dc5749138eac (diff) | |
| download | cpython-9f37eae9cc923407a455cdd615de01112f0aa80b.zip cpython-9f37eae9cc923407a455cdd615de01112f0aa80b.tar.gz cpython-9f37eae9cc923407a455cdd615de01112f0aa80b.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 4a759b4..f5a1c4b 100644 --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -524,6 +524,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() |
