Home
last modified time | relevance | path

Searched refs:idleConf (Results 1 – 25 of 47) 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
35 idleConf.userCfg = testcfg
42 idleConf.userCfg = usercfg
160 default_font = idleConf.GetFont(root, 'main', 'EditorWindow')
257 for section in idleConf.GetSectionList('user', 'highlight'):
258 idleConf.userCfg['highlight'].remove_section(section)
271 idleConf.CurrentTheme = mock.Mock(return_value='IDLE Classic')
283 idleConf.SetOption('highlight', 'test1', 'option', 'value')
284 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
439 iGE = idleConf.GetExtensions
462 eq(idleConf.GetExtnNameForEvent('z-in'), 'ZzDummy')
463 eq(idleConf.GetExtnNameForEvent('z-out'), None)
471 self.assertEqual(idleConf.GetExtensionKeys('ZzDummy'),
484 iGEB = idleConf.GetExtensionBindings
613 colorkeys = idleConf.current_colors_and_keys
[all …]
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/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()
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"),
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',
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")
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 …]
DClassBrowser.py20 from idlelib.configHandler import idleConf
59 theme = idleConf.CurrentTheme()
60 background = idleConf.GetHighlight(theme, 'normal')['background']
Dhelp.py32 from idlelib.configHandler import idleConf
162 uwide = idleConf.GetOption('main', 'EditorWindow', 'width', type='int')
163 uhigh = idleConf.GetOption('main', 'EditorWindow', 'height', type='int')
/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', fgBg='fg')
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.py23 from idlelib.config import idleConf, ConfigChanges
265 self.ext_defaultCfg = idleConf.defaultCfg['extensions']
266 self.ext_userCfg = idleConf.userCfg['extensions']
304 for ext_name in idleConf.GetExtensions(active_only=False):
595 configured_font = idleConf.GetFont(self, 'main', 'EditorWindow')
668 space_num = idleConf.GetOption(
954 self.theme_source.set(idleConf.GetOption(
957 current_option = idleConf.CurrentTheme()
960 item_list = idleConf.GetSectionList('default', 'highlight')
963 item_list = idleConf.GetSectionList('user', 'highlight')
[all …]
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.py785 idleConf = IdleConf() variable
820 for config_type in idleConf.config_types:
838 if idleConf.defaultCfg[config_type].has_option(section, item):
839 if idleConf.defaultCfg[config_type].Get(section, item) == value:
841 return idleConf.userCfg[config_type].RemoveOption(section, item)
843 return idleConf.userCfg[config_type].SetOption(section, item, value)
851 idleConf.userCfg['main'].Save()
859 idleConf.userCfg['main'].remove_section('HelpFiles')
865 idleConf.userCfg[config_type].Save()
869 idleConf.userCfg[config_type].Save()
[all …]
Dmainmenu.py13 from idlelib.config import idleConf
119 default_keydefs = idleConf.GetCurrentKeySet()
Dcodecontext.py18 from idlelib.config import idleConf
80 cls.context_depth = idleConf.GetOption("extensions", "CodeContext",
82 cls.colors = idleConf.GetHighlight(idleConf.CurrentTheme(), 'context')
Dbrowser.py16 from idlelib.config import idleConf
113 theme = idleConf.CurrentTheme()
114 background = idleConf.GetHighlight(theme, 'normal')['background']
Dpyshell.py48 from idlelib.config import idleConf
135 idleConf.userdir, 'breakpoints.lst')
161 theme = idleConf.CurrentTheme()
162 cfg = idleConf.GetHighlight(theme, "break")
347 theme = idleConf.CurrentTheme()
350 "stdout": idleConf.GetHighlight(theme, "stdout"),
351 "stderr": idleConf.GetHighlight(theme, "stderr"),
352 "console": idleConf.GetHighlight(theme, "console"),
417 del_exitf = idleConf.GetOption('main', 'General', 'delete-exitfunc',
630 theme = idleConf.CurrentTheme()
[all …]
Dhistory.py3 from idlelib.config import idleConf
27 self.cyclic = idleConf.GetOption("main", "History", "cyclic", 1, "bool")
Deditor.py15 from idlelib.config import idleConf
113 idleConf.userdir, 'recent-files.lst')
118 self.width = idleConf.GetOption('main', 'EditorWindow',
127 'height': idleConf.GetOption(
201 text['font'] = idleConf.GetFont(self.root, 'main', 'EditorWindow')
215 usespaces = idleConf.GetOption('main', 'Indent',
796 self.text['font'] = idleConf.GetFont(self.root, 'main','EditorWindow')
801 self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet()
805 xkeydefs = idleConf.GetExtensionBindings(extensionName)
813 self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet()
[all …]
Dhelp.py35 from idlelib.config import idleConf
164 uwide = idleConf.GetOption('main', 'EditorWindow', 'width', type='int')
165 uhigh = idleConf.GetOption('main', 'EditorWindow', 'height', type='int')

12