Home
last modified time | relevance | path

Searched refs:idleConf (Results 1 – 25 of 49) sorted by relevance

12

/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_configdialog.py13 from idlelib.configdialog import idleConf, changes, tracers
18 usercfg = idleConf.userCfg
36 idleConf.userCfg = testcfg
44 idleConf.userCfg = usercfg
214 default_font = idleConf.GetFont(root, 'main', 'EditorWindow')
311 for section in idleConf.GetSectionList('user', 'highlight'):
312 idleConf.userCfg['highlight'].remove_section(section)
325 idleConf.CurrentTheme = mock.Mock(return_value='IDLE Classic')
337 idleConf.SetOption('highlight', 'test1', 'option', 'value')
338 idleConf.SetOption('highlight', 'test2', 'option2', 'value2')
[all …]
Dtest_config.py21 idleConf = config.idleConf variable
22 usercfg = idleConf.userCfg
30 idleConf.userCfg = testcfg
34 idleConf.userCfg = usercfg
422 iGE = idleConf.GetExtensions
445 eq(idleConf.GetExtnNameForEvent('z-in'), 'ZzDummy')
446 eq(idleConf.GetExtnNameForEvent('z-out'), None)
454 self.assertEqual(idleConf.GetExtensionKeys('ZzDummy'),
467 iGEB = idleConf.GetExtensionBindings
596 colorkeys = idleConf.current_colors_and_keys
[all …]
Dtest_codecontext.py14 usercfg = codecontext.idleConf.userCfg
67 codecontext.idleConf.userCfg = testcfg
71 codecontext.idleConf.userCfg = usercfg
85 orig_idleConf_GetHighlight = codecontext.idleConf.GetHighlight
91 codecontext.idleConf, 'GetHighlight', mock_idleconf_GetHighlight)
99 codecontext.idleConf, 'GetFont', mock_idleconf_GetFont)
Dtest_colorizer.py14 usercfg = colorizer.idleConf.userCfg
34 colorizer.idleConf.userCfg = testcfg
38 colorizer.idleConf.userCfg = usercfg
182 highlight = partial(config.idleConf.GetHighlight, theme='IDLE Classic')
192 highlight = partial(config.idleConf.GetHighlight, theme='IDLE Classic')
/external/python/cpython3/Lib/idlelib/
Dcolorizer.py6 from idlelib.config import idleConf
41 theme = idleConf.CurrentTheme()
42 normal_colors = idleConf.GetHighlight(theme, 'normal')
43 cursor_color = idleConf.GetHighlight(theme, 'cursor')['foreground']
44 select_colors = idleConf.GetHighlight(theme, 'hilite')
116 theme = idleConf.CurrentTheme()
118 "COMMENT": idleConf.GetHighlight(theme, "comment"),
119 "KEYWORD": idleConf.GetHighlight(theme, "keyword"),
120 "BUILTIN": idleConf.GetHighlight(theme, "builtin"),
121 "STRING": idleConf.GetHighlight(theme, "string"),
[all …]
Dconfigdialog.py25 from idlelib.config import idleConf, ConfigChanges
273 self.ext_defaultCfg = idleConf.defaultCfg['extensions']
274 self.ext_userCfg = idleConf.userCfg['extensions']
312 for ext_name in idleConf.GetExtensions(active_only=False):
606 configured_font = idleConf.GetFont(self, 'main', 'EditorWindow')
678 space_num = idleConf.GetOption(
972 self.theme_source.set(idleConf.GetOption(
975 current_option = idleConf.CurrentTheme()
978 item_list = idleConf.GetSectionList('default', 'highlight')
981 item_list = idleConf.GetSectionList('user', 'highlight')
[all …]
Dcodecontext.py17 from idlelib.config import idleConf
77 cls.context_depth = idleConf.GetOption("extensions", "CodeContext",
128 line_number_colors = idleConf.GetHighlight(idleConf.CurrentTheme(),
245 font = idleConf.GetFont(self.text, 'main', 'EditorWindow')
250 colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'context')
255 line_number_colors = idleConf.GetHighlight(idleConf.CurrentTheme(),
Dparenmatch.py8 from idlelib.config import idleConf
53 cls.STYLE = idleConf.GetOption(
55 cls.FLASH_DELAY = idleConf.GetOption(
57 cls.BELL = idleConf.GetOption(
59 cls.HILITE_CONFIG = idleConf.GetHighlight(idleConf.CurrentTheme(),
Dzzdummy.py3 from idlelib.config import idleConf
5 ztext = idleConf.GetOption('extensions', 'ZzDummy', 'z-text')
23 cls.ztext = idleConf.GetOption('extensions', 'ZzDummy', 'z-text')
Dconfig.py766 idleConf = IdleConf() variable
801 for config_type in idleConf.config_types:
819 if idleConf.defaultCfg[config_type].has_option(section, item):
820 if idleConf.defaultCfg[config_type].Get(section, item) == value:
822 return idleConf.userCfg[config_type].RemoveOption(section, item)
824 return idleConf.userCfg[config_type].SetOption(section, item, value)
832 idleConf.userCfg['main'].Save()
840 idleConf.userCfg['main'].remove_section('HelpFiles')
846 idleConf.userCfg[config_type].Save()
850 idleConf.userCfg[config_type].Save()
[all …]
Dmainmenu.py13 from idlelib.config import idleConf
121 default_keydefs = idleConf.GetCurrentKeySet()
Dsidebar.py8 from idlelib.config import idleConf
65 font = idleConf.GetFont(self.text, 'main', 'EditorWindow')
73 colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'normal')
281 colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'linenumber')
323 font = idleConf.GetFont(toplevel, 'main', 'EditorWindow')
Deditor.py18 from idlelib.config import idleConf
119 self.recent_files_path = idleConf.userdir and os.path.join(
120 idleConf.userdir, 'recent-files.lst')
125 width = idleConf.GetOption('main', 'EditorWindow', 'width', type='int')
133 'height': idleConf.GetOption(
215 text['font'] = idleConf.GetFont(self.root, 'main', 'EditorWindow')
229 usespaces = idleConf.GetOption('main', 'Indent',
247 if not hasattr(idleConf, 'blink_off_time'):
248 idleConf.blink_off_time = self.text['insertofftime']
345 if idleConf.GetOption('main', 'EditorWindow',
[all …]
Dbrowser.py16 from idlelib.config import idleConf
114 theme = idleConf.CurrentTheme()
115 background = idleConf.GetHighlight(theme, 'normal')['background']
Dhistory.py3 from idlelib.config import idleConf
27 self.cyclic = idleConf.GetOption("main", "History", "cyclic", 1, "bool")
Dpyshell.py50 from idlelib.config import idleConf
138 idleConf.userdir, 'breakpoints.lst')
164 theme = idleConf.CurrentTheme()
165 cfg = idleConf.GetHighlight(theme, "break")
350 theme = idleConf.CurrentTheme()
353 "stdout": idleConf.GetHighlight(theme, "stdout"),
354 "stderr": idleConf.GetHighlight(theme, "stderr"),
355 "console": idleConf.GetHighlight(theme, "console"),
432 del_exitf = idleConf.GetOption('main', 'General', 'delete-exitfunc',
641 theme = idleConf.CurrentTheme()
[all …]
/external/python/cpython2/Lib/idlelib/
DconfigDialog.py15 from idlelib.configHandler import idleConf
535 if idleConf.GetOption('main', 'Theme', 'name') != 'IDLE New':
567 if idleConf.IsCoreBinding(event):
571 extName = idleConf.GetExtnNameForEvent(event)
632 sections = idleConf.GetSectionList('default', configType)
635 options = idleConf.defaultCfg[configType].GetOptionList(section)
638 idleConf.defaultCfg[configType].Get(section, option))
671 currentBindings = idleConf.GetCurrentKeySet()
700 usedNames = (idleConf.GetSectionList('user', 'keys') +
701 idleConf.GetSectionList('default', 'keys'))
[all …]
DCodeContext.py16 from idlelib.configHandler import idleConf
28 context_depth = idleConf.GetOption("extensions", "CodeContext",
30 bgcolor = idleConf.GetOption("extensions", "CodeContext",
32 fgcolor = idleConf.GetOption("extensions", "CodeContext",
46 visible = idleConf.GetOption("extensions", "CodeContext",
87 idleConf.SetOption("extensions", "CodeContext", "visible",
89 idleConf.SaveUserCfgFiles()
DParenMatch.py9 from idlelib.configHandler import idleConf
45 STYLE = idleConf.GetOption('extensions','ParenMatch','style',
47 FLASH_DELAY = idleConf.GetOption('extensions','ParenMatch','flash-delay',
49 HILITE_CONFIG = idleConf.GetHighlight(idleConf.CurrentTheme(),'hilite')
50 BELL = idleConf.GetOption('extensions','ParenMatch','bell',
DColorDelegator.py6 from idlelib.configHandler import idleConf
65 theme = idleConf.CurrentTheme()
67 "COMMENT": idleConf.GetHighlight(theme, "comment"),
68 "KEYWORD": idleConf.GetHighlight(theme, "keyword"),
69 "BUILTIN": idleConf.GetHighlight(theme, "builtin"),
70 "STRING": idleConf.GetHighlight(theme, "string"),
71 "DEFINITION": idleConf.GetHighlight(theme, "definition"),
74 "ERROR": idleConf.GetHighlight(theme, "error"),
76 "hit": idleConf.GetHighlight(theme, "hit"),
DBindings.py11 from idlelib.configHandler import idleConf
91 default_keydefs = idleConf.GetCurrentKeySet()
DEditorWindow.py17 from idlelib.configHandler import idleConf
178 self.recent_files_path = os.path.join(idleConf.GetUserCfgDir(),
182 self.width = idleConf.GetOption('main','EditorWindow','width', type='int')
189 'height': idleConf.GetOption('main', 'EditorWindow', 'height', type='int')}
262 text['font'] = idleConf.GetFont(self.root, 'main', 'EditorWindow')
276 usespaces = idleConf.GetOption('main', 'Indent', 'use-spaces', type='bool')
760 theme = idleConf.CurrentTheme()
761 normal_colors = idleConf.GetHighlight(theme, 'normal')
762 cursor_color = idleConf.GetHighlight(theme, 'cursor', fgBg='fg')
763 select_colors = idleConf.GetHighlight(theme, 'hilite')
[all …]
DIdleHistory.py3 from idlelib.configHandler import idleConf
26 self.cyclic = idleConf.GetOption("main", "History", "cyclic", 1, "bool")
DClassBrowser.py20 from idlelib.configHandler import idleConf
59 theme = idleConf.CurrentTheme()
60 background = idleConf.GetHighlight(theme, 'normal')['background']
DPyShell.py32 from idlelib.configHandler import idleConf
135 self.breakpointPath = os.path.join(idleConf.GetUserCfgDir(),
161 theme = idleConf.CurrentTheme()
162 cfg = idleConf.GetHighlight(theme, "break")
346 theme = idleConf.CurrentTheme()
349 "stdout": idleConf.GetHighlight(theme, "stdout"),
350 "stderr": idleConf.GetHighlight(theme, "stderr"),
351 "console": idleConf.GetHighlight(theme, "console"),
419 del_exitf = idleConf.GetOption('main', 'General', 'delete-exitfunc',
634 theme = idleConf.CurrentTheme()
[all …]

12