Commit 93f3542a authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #24782: Finish converting the Configure Extension dialog into a new

tab in the IDLE Preferences dialog.  Code patch by Mark Roseman.
parent 5805ddee
...@@ -252,17 +252,16 @@ Options menu (Shell and Editor) ...@@ -252,17 +252,16 @@ Options menu (Shell and Editor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Configure IDLE Configure IDLE
Open a configuration dialog. Fonts, indentation, keybindings, and color Open a configuration dialog and change preferences for the following:
themes may be altered. Startup Preferences may be set, and additional fonts, indentation, keybindings, text color themes, startup windows and
help sources can be specified. Non-default user setting are saved in a size, additional help sources, and extensions (see below). On OS X,
.idlerc directory in the user's home directory. Problems caused by bad user open the configuration dialog by selecting Preferences in the application
configuration files are solved by editing or deleting one or more of the menu. To use a new built-in color theme (IDLE Dark) with older IDLEs,
files in .idlerc. On OS X, open the configuration dialog by selecting save it as a new custom theme.
Preferences in the application menu.
Non-default user settings are saved in a .idlerc directory in the user's
Configure Extensions home directory. Problems caused by bad user configuration files are solved
Open a configuration dialog for setting preferences for extensions by editing or deleting one or more of the files in .idlerc.
(discussed below). See note above about the location of user settings.
Code Context (toggle)(Editor Window only) Code Context (toggle)(Editor Window only)
Open a pane at the top of the edit window which shows the block context Open a pane at the top of the edit window which shows the block context
......
...@@ -78,7 +78,6 @@ menudefs = [ ...@@ -78,7 +78,6 @@ menudefs = [
]), ]),
('options', [ ('options', [
('Configure _IDLE', '<<open-config-dialog>>'), ('Configure _IDLE', '<<open-config-dialog>>'),
('Configure _Extensions', '<<open-config-extensions-dialog>>'),
None, None,
]), ]),
('help', [ ('help', [
......
...@@ -191,8 +191,6 @@ class EditorWindow(object): ...@@ -191,8 +191,6 @@ class EditorWindow(object):
text.bind("<<python-docs>>", self.python_docs) text.bind("<<python-docs>>", self.python_docs)
text.bind("<<about-idle>>", self.about_dialog) text.bind("<<about-idle>>", self.about_dialog)
text.bind("<<open-config-dialog>>", self.config_dialog) text.bind("<<open-config-dialog>>", self.config_dialog)
text.bind("<<open-config-extensions-dialog>>",
self.config_extensions_dialog)
text.bind("<<open-module>>", self.open_module) text.bind("<<open-module>>", self.open_module)
text.bind("<<do-nothing>>", lambda event: "break") text.bind("<<do-nothing>>", lambda event: "break")
text.bind("<<select-all>>", self.select_all) text.bind("<<select-all>>", self.select_all)
...@@ -514,10 +512,6 @@ class EditorWindow(object): ...@@ -514,10 +512,6 @@ class EditorWindow(object):
# Synchronize with macosxSupport.overrideRootMenu.config_dialog. # Synchronize with macosxSupport.overrideRootMenu.config_dialog.
configDialog.ConfigDialog(self.top,'Settings') configDialog.ConfigDialog(self.top,'Settings')
def config_extensions_dialog(self, event=None):
"Handle Options 'Configure Extensions' event."
configDialog.ConfigExtensionsDialog(self.top)
def help_dialog(self, event=None): def help_dialog(self, event=None):
"Handle Help 'IDLE Help' event." "Handle Help 'IDLE Help' event."
# Synchronize with macosxSupport.overrideRootMenu.help_dialog. # Synchronize with macosxSupport.overrideRootMenu.help_dialog.
......
This diff is collapsed.
...@@ -266,16 +266,16 @@ access to locals and globals.</dd> ...@@ -266,16 +266,16 @@ access to locals and globals.</dd>
<h3>25.5.1.7. Options menu (Shell and Editor)<a class="headerlink" href="#options-menu-shell-and-editor" title="Permalink to this headline"></a></h3> <h3>25.5.1.7. Options menu (Shell and Editor)<a class="headerlink" href="#options-menu-shell-and-editor" title="Permalink to this headline"></a></h3>
<dl class="docutils"> <dl class="docutils">
<dt>Configure IDLE</dt> <dt>Configure IDLE</dt>
<dd>Open a configuration dialog. Fonts, indentation, keybindings, and color <dd><p class="first">Open a configuration dialog and change preferences for the following:
themes may be altered. Startup Preferences may be set, and additional fonts, indentation, keybindings, text color themes, startup windows and
help sources can be specified. Non-default user setting are saved in a size, additional help sources, and extensions (see below). On OS X,
.idlerc directory in the user&#8217;s home directory. Problems caused by bad user open the configuration dialog by selecting Preferences in the application
configuration files are solved by editing or deleting one or more of the menu. To use a new built-in color theme (IDLE Dark) with older IDLEs,
files in .idlerc. On OS X, open the configuration dialog by selecting save it as a new custom theme.</p>
Preferences in the application menu.</dd> <p class="last">Non-default user settings are saved in a .idlerc directory in the user&#8217;s
<dt>Configure Extensions</dt> home directory. Problems caused by bad user configuration files are solved
<dd>Open a configuration dialog for setting preferences for extensions by editing or deleting one or more of the files in .idlerc.</p>
(discussed below). See note above about the location of user settings.</dd> </dd>
<dt>Code Context (toggle)(Editor Window only)</dt> <dt>Code Context (toggle)(Editor Window only)</dt>
<dd>Open a pane at the top of the edit window which shows the block context <dd>Open a pane at the top of the edit window which shows the block context
of the code which has scrolled above the top of the window.</dd> of the code which has scrolled above the top of the window.</dd>
...@@ -699,7 +699,7 @@ are currently:</p> ...@@ -699,7 +699,7 @@ are currently:</p>
The Python Software Foundation is a non-profit corporation. The Python Software Foundation is a non-profit corporation.
<a href="https://www.python.org/psf/donations/">Please donate.</a> <a href="https://www.python.org/psf/donations/">Please donate.</a>
<br /> <br />
Last updated on Oct 02, 2015. Last updated on Oct 13, 2015.
<a href="../bugs.html">Found a bug</a>? <a href="../bugs.html">Found a bug</a>?
<br /> <br />
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2.3. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2.3.
......
...@@ -93,15 +93,6 @@ _class_browser_spec = { ...@@ -93,15 +93,6 @@ _class_browser_spec = {
"Double clicking on items prints a traceback for an exception " "Double clicking on items prints a traceback for an exception "
"that is ignored." "that is ignored."
} }
ConfigExtensionsDialog_spec = {
'file': 'configDialog',
'kwds': {'title': 'Test Extension Configuration',
'_htest': True,},
'msg': "IDLE extensions dialog.\n"
"\n[Ok] to close the dialog.[Apply] to apply the settings and "
"and [Cancel] to revert all changes.\nRe-run the test to ensure "
"changes made have persisted."
}
_color_delegator_spec = { _color_delegator_spec = {
'file': 'ColorDelegator', 'file': 'ColorDelegator',
...@@ -121,7 +112,8 @@ ConfigDialog_spec = { ...@@ -121,7 +112,8 @@ ConfigDialog_spec = {
"font face of the text in the area below it.\nIn the " "font face of the text in the area below it.\nIn the "
"'Highlighting' tab, try different color schemes. Clicking " "'Highlighting' tab, try different color schemes. Clicking "
"items in the sample program should update the choices above it." "items in the sample program should update the choices above it."
"\nIn the 'Keys' and 'General' tab, test settings of interest." "\nIn the 'Keys', 'General' and 'Extensions' tabs, test settings"
"of interest."
"\n[Ok] to close the dialog.[Apply] to apply the settings and " "\n[Ok] to close the dialog.[Apply] to apply the settings and "
"and [Cancel] to revert all changes.\nRe-run the test to ensure " "and [Cancel] to revert all changes.\nRe-run the test to ensure "
"changes made have persisted." "changes made have persisted."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment