Lines Matching refs:idleConf

13 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')
290 for section in idleConf.GetSectionList('user', 'highlight'):
291 idleConf.userCfg['highlight'].remove_section(section)
304 idleConf.CurrentTheme = mock.Mock(return_value='IDLE Classic')
316 idleConf.SetOption('highlight', 'test1', 'option', 'value')
317 idleConf.SetOption('highlight', 'test2', 'option2', 'value2')
326 idleConf.CurrentTheme = mock.Mock(return_value='test2')
327 idleConf.SetOption('main', 'Theme', 'default', '0')
336 del idleConf.CurrentTheme
366 idleConf.SetOption('main', 'Theme', 'name', 'spam')
375 idleConf.SetOption('main', 'Theme', 'name', 'IDLE New')
597 self.assertNotIn(gntn.result, idleConf.userCfg['highlight'])
602 self.assertNotIn(gntn.result, idleConf.userCfg['highlight'])
604 self.assertIn(gntn.result, idleConf.userCfg['highlight'])
619 self.assertNotIn(first_new, idleConf.userCfg)
621 eq(idleConf.GetSectionList('user', 'highlight'), [first_new])
622 eq(idleConf.GetThemeDict('default', 'IDLE Classic'),
623 idleConf.GetThemeDict('user', first_new))
630 self.assertNotIn(second_new, idleConf.userCfg)
632 eq(idleConf.GetSectionList('user', 'highlight'), [first_new, second_new])
633 self.assertNotEqual(idleConf.GetThemeDict('user', first_new),
634 idleConf.GetThemeDict('user', second_new))
636 idleConf.SetOption('highlight', first_new, 'hit-background', 'yellow')
637 eq(idleConf.GetThemeDict('user', first_new),
638 idleConf.GetThemeDict('user', second_new))
687 gh = idleConf.GetHighlight
723 idleConf.userCfg['highlight'].SetOption(theme_name, 'name', 'value')
727 idleConf.userCfg['highlight'].SetOption(theme_name2, 'name', 'value')
740 eq(idleConf.GetSectionList('user', 'highlight'), [theme_name, theme_name2])
750 eq(idleConf.GetSectionList('user', 'highlight'), [theme_name2])
763 eq(idleConf.GetSectionList('user', 'highlight'), [])
797 for section in idleConf.GetSectionList('user', 'keys'):
798 idleConf.userCfg['keys'].remove_section(section)
809 idleConf.CurrentKeys = mock.Mock(return_value='IDLE Classic OSX')
821 idleConf.SetOption('keys', 'test1', 'option', 'value')
822 idleConf.SetOption('keys', 'test2', 'option2', 'value2')
831 idleConf.CurrentKeys = mock.Mock(return_value='test2')
832 idleConf.default_keys = mock.Mock(return_value='IDLE Modern Unix')
833 idleConf.SetOption('main', 'Keys', 'default', '0')
842 del idleConf.CurrentKeys, idleConf.default_keys
869 idleConf.userCfg['main'].remove_section('Keys')
883 idleConf.SetOption('main', 'Keys', 'name', 'IDLE Classic Unix')
913 idleConf.SetOption('extensions', 'ZzDummy', 'enable', 'True')
1024 self.assertNotIn(gnkn.result, idleConf.userCfg['keys'])
1026 self.assertIn(gnkn.result, idleConf.userCfg['keys'])
1062 self.assertNotIn(first_new, idleConf.userCfg)
1064 eq(idleConf.GetSectionList('user', 'keys'), [first_new])
1065 eq(idleConf.GetKeySet('IDLE Classic Windows'),
1066 idleConf.GetKeySet(first_new))
1073 self.assertNotIn(second_new, idleConf.userCfg)
1075 eq(idleConf.GetSectionList('user', 'keys'), [first_new, second_new])
1076 self.assertNotEqual(idleConf.GetKeySet(first_new),
1077 idleConf.GetKeySet(second_new))
1079 idleConf.SetOption('keys', first_new, 'copy', '<Key-F11>')
1080 eq(idleConf.GetKeySet(first_new), idleConf.GetKeySet(second_new))
1085 gks = idleConf.GetKeySet = Func()
1123 del idleConf.GetKeySet
1134 idleConf.userCfg['keys'].SetOption(keyset_name, 'name', 'value')
1138 idleConf.userCfg['keys'].SetOption(keyset_name2, 'name', 'value')
1151 eq(idleConf.GetSectionList('user', 'keys'), [keyset_name, keyset_name2])
1161 eq(idleConf.GetSectionList('user', 'keys'), [keyset_name2])
1174 eq(idleConf.GetSectionList('user', 'keys'), [])
1338 idleConf.SetOption('main', 'HelpFiles', '1', 'name;file')