Lines Matching +full:xquartz +full:-

1 """idlelib.config -- Manage IDLE configuration information.
3 The comments at the beginning of config-main.def describe the
11 database keys are tuples (config-type, section, item). As implemented,
13 config-type keys 'main', 'extensions', 'highlight', and 'keys'. The
46 cfgFile - string, fully specified configuration file name
155 Default config files, self.defaultCfg --
157 (idle install dir)/config-{config-type}.def
159 User config files, self.userCfg --
161 (user home dir)/.idlerc/config-{config-type}.cfg
187 idleDir, 'config-' + cfgType + '.def')
189 userDir, 'config-' + cfgType + '.cfg')
244 warning = ('\n Warning: config.py - IdleConf.GetOption -\n'
258 warning = ('\n Warning: config.py - IdleConf.GetOption -\n'
289 fgBg - string ('fg' or 'bg') or None.
299 fore = themeDict[element + '-foreground']
301 back = themeDict['normal-background']
303 back = themeDict[element + '-background']
318 type - string, 'default' or 'user' theme type
319 themeName - string, theme name
334 theme ={'normal-foreground':'#000000',
335 'normal-background':'#ffffff',
336 'keyword-foreground':'#000000',
337 'keyword-background':'#ffffff',
338 'builtin-foreground':'#000000',
339 'builtin-background':'#ffffff',
340 'comment-foreground':'#000000',
341 'comment-background':'#ffffff',
342 'string-foreground':'#000000',
343 'string-background':'#ffffff',
344 'definition-foreground':'#000000',
345 'definition-background':'#ffffff',
346 'hilite-foreground':'#000000',
347 'hilite-background':'gray',
348 'break-foreground':'#ffffff',
349 'break-background':'#000000',
350 'hit-foreground':'#ffffff',
351 'hit-background':'#000000',
352 'error-foreground':'#ffffff',
353 'error-background':'#000000',
355 'cursor-foreground':'#000000',
357 'stdout-foreground':'#000000',
358 'stdout-background':'#ffffff',
359 'stderr-foreground':'#000000',
360 'stderr-background':'#ffffff',
361 'console-foreground':'#000000',
362 'console-background':'#ffffff',
363 'context-foreground':'#000000',
364 'context-background':'#ffffff',
370 ' -\n problem retrieving theme element %r'
390 idlelib.config-main.def ('default') includes these sections
402 Item 'name2', is used for built-in ('default') themes and keys
436 """Return extensions in default and user config-extensions files.
453 # extensions in config-extensions.def for backward compatibility
482 virtualEvent - string, name of the virtual event to test for,
532 Augment self.GetExtensionKeys(extensionName) with mapping of non-
538 #add the non-configurable bindings
552 keySetName - name of key binding set (config-keys section).
553 eventStr - virtual event, including brackets, as in '<<event>>'.
555 eventName = eventStr[2:-2] #trim off the angle brackets
568 # for Cocoa Tk and XQuartz Tk so we should not use it
571 v2 = [ x.replace('<Alt-', '<Option-') for x in v ]
578 """Return event-key dict for keySetName core plus active extensions.
598 virtualEvent - string, name of the virtual event to test for,
606 former_extension_events = { # Those with user-configurable keys.
607 '<<force-open-completions>>', '<<expand-word>>',
608 '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>',
609 '<<run-module>>', '<<check-module>>', '<<zoom-height>>'}
612 """Return dict of core virtual-key keybindings for keySetName.
618 resort fallback' to the CUA-ish bindings defined here.
621 '<<copy>>': ['<Control-c>', '<Control-C>'],
622 '<<cut>>': ['<Control-x>', '<Control-X>'],
623 '<<paste>>': ['<Control-v>', '<Control-V>'],
624 '<<beginning-of-line>>': ['<Control-a>', '<Home>'],
625 '<<center-insert>>': ['<Control-l>'],
626 '<<close-all-windows>>': ['<Control-q>'],
627 '<<close-window>>': ['<Alt-F4>'],
628 '<<do-nothing>>': ['<Control-x>'],
629 '<<end-of-file>>': ['<Control-d>'],
630 '<<python-docs>>': ['<F1>'],
631 '<<python-context-help>>': ['<Shift-F1>'],
632 '<<history-next>>': ['<Alt-n>'],
633 '<<history-previous>>': ['<Alt-p>'],
634 '<<interrupt-execution>>': ['<Control-c>'],
635 '<<view-restart>>': ['<F6>'],
636 '<<restart-shell>>': ['<Control-F6>'],
637 '<<open-class-browser>>': ['<Alt-c>'],
638 '<<open-module>>': ['<Alt-m>'],
639 '<<open-new-window>>': ['<Control-n>'],
640 '<<open-window-from-file>>': ['<Control-o>'],
641 '<<plain-newline-and-indent>>': ['<Control-j>'],
642 '<<print-window>>': ['<Control-p>'],
643 '<<redo>>': ['<Control-y>'],
644 '<<remove-selection>>': ['<Escape>'],
645 '<<save-copy-of-window-as-file>>': ['<Alt-Shift-S>'],
646 '<<save-window-as-file>>': ['<Alt-s>'],
647 '<<save-window>>': ['<Control-s>'],
648 '<<select-all>>': ['<Alt-a>'],
649 '<<toggle-auto-coloring>>': ['<Control-slash>'],
650 '<<undo>>': ['<Control-z>'],
651 '<<find-again>>': ['<Control-g>', '<F3>'],
652 '<<find-in-files>>': ['<Alt-F3>'],
653 '<<find-selection>>': ['<Control-F3>'],
654 '<<find>>': ['<Control-f>'],
655 '<<replace>>': ['<Control-h>'],
656 '<<goto-line>>': ['<Alt-g>'],
657 '<<smart-backspace>>': ['<Key-BackSpace>'],
658 '<<newline-and-indent>>': ['<Key-Return>', '<Key-KP_Enter>'],
659 '<<smart-indent>>': ['<Key-Tab>'],
660 '<<indent-region>>': ['<Control-Key-bracketright>'],
661 '<<dedent-region>>': ['<Control-Key-bracketleft>'],
662 '<<comment-region>>': ['<Alt-Key-3>'],
663 '<<uncomment-region>>': ['<Alt-Key-4>'],
664 '<<tabify-region>>': ['<Alt-Key-5>'],
665 '<<untabify-region>>': ['<Alt-Key-6>'],
666 '<<toggle-tabs>>': ['<Alt-Key-t>'],
667 '<<change-indentwidth>>': ['<Alt-Key-u>'],
668 '<<del-word-left>>': ['<Control-Key-BackSpace>'],
669 '<<del-word-right>>': ['<Control-Key-Delete>'],
670 '<<force-open-completions>>': ['<Control-Key-space>'],
671 '<<expand-word>>': ['<Alt-Key-slash>'],
672 '<<force-open-calltip>>': ['<Control-Key-backslash>'],
673 '<<flash-paren>>': ['<Control-Key-0>'],
674 '<<format-paragraph>>': ['<Alt-Key-q>'],
675 '<<run-module>>': ['<Key-F5>'],
676 '<<check-module>>': ['<Alt-Key-x>'],
677 '<<zoom-height>>': ['<Alt-Key-2>'],
684 '\n Warning: config.py - IdleConf.GetCoreKeys -\n'
697 '\n Warning: config.py - IdleConf.GetCoreKeys -\n'
726 if value.find(';') == -1: #malformed config entry with no ';'
748 """Retrieve a font from configuration (font, font-size, font-bold)
759 size = self.GetOption(configType, section, 'font-size', type='int',
761 bold = self.GetOption(configType, section, 'font-bold', default=0,
802 page -- one of the 4 top-level dicts representing a
803 .idlerc/config-x.cfg file.
804 config_type -- name of a page.
805 section -- a section within a page/file.
806 option -- name of an option within a section.
807 value -- value for the option.
905 crc = crc32(txt.encode(encoding='utf-8'), crc)