diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py index a2cfaab..1fc2bd1 100644 --- a/Lib/idlelib/configdialog.py +++ b/Lib/idlelib/configdialog.py @@ -129,12 +129,44 @@ class ConfigDialog(Toplevel): def create_page_font_tab(self): """Return frame of widgets for Font/Tabs tab. - Configuration attributes: + Tk Variables: font_size: Font size. font_bold: Select font bold or not. font_name: Font face. space_num: Indentation width. edit_font: Font widget with default font name, size, and weight. + + Data Attributes: + + Methods: + on_fontlist_select: Bound to fontlist button release + or key release. + set_font_sample: Command for opt_menu_font_size and + check_font_bold. + + Widgets Bound to self: + fontlist + opt_menu_font_size + font_sample + scale_indent_size + + Widget Structure: + frame + frame_font: LabelFrame + frame_font_name: Frame + font_name_title: Label + fontlist: ListBox + scroll_font: Scrollbar + frame_font_param: Frame + font_size_title: Label + opt_menu_font_size: DynOptionMenu - font_size + check_font_bold: Checkbutton - font_bold + frame_font_sample: Frame + font_sample: Label + frame_indent: LabelFrame + frame_indent_size: Frame + indent_size_title: Label + scale_indent_size: Scale - space_num """ parent = self.parent self.font_size = StringVar(parent) @@ -207,13 +239,55 @@ class ConfigDialog(Toplevel): def create_page_highlight(self): """Return frame of widgets for Highlighting tab. - Configuration attributes: + Tk Variables: builtin_theme: Menu variable for built-in theme. custom_theme: Menu variable for custom theme. fg_bg_toggle: Toggle for foreground/background color. colour: Color of selected target. is_builtin_theme: Selector for built-in or custom theme. highlight_target: Menu variable for the highlight tag target. + + Data Attributes: + + Methods: + get_colour: Command for button_set_colour. + set_colour_sample_binding: Command for fg_bg_toggle. + save_as_new_theme: Command for button_save_custom_theme. + set_theme_type: Command for is_builtin_theme. + delete_custom_theme: Command for button_delete_custom_theme. + + Widgets Bound to self: + text_highlight_sample + frame_colour_set + opt_menu_highlight_target + radio_fg + radio_bg + radio_theme_builtin + radio_theme_custom + opt_menu_theme_builtin + opt_menu_theme_custom + button_delete_custom_theme + new_custom_theme + + Widget Structure: + frame + frame_custom: LabelFrame + text_highlight_sample: Text + frame_colour_set: Frame + button_set_colour: Button + opt_menu_highlight_target: DynOptionMenu - highlight_target + frame_fg_bg_toggle: Frame + radio_fg: Radiobutton - fg_bg_toggle + radio_bg: Radiobutton - fg_bg_toggle + button_save_custom_theme: Button + frame_theme: LabelFrame + theme_type_title: Label + radio_theme_builtin: Radiobutton - is_builtin_theme + radio_theme_custom: Radiobutton - is_builtin_theme + opt_menu_theme_builtin: DynOptionMenu - builtin_theme + opt_menu_theme_custom: DynOptionMenu - custom_theme + button_delete_custom_theme: Button + new_custom_theme: Label """ parent = self.parent self.builtin_theme = StringVar(parent) @@ -327,11 +401,50 @@ class ConfigDialog(Toplevel): def create_page_keys(self): """Return frame of widgets for Keys tab. - Configuration attributes: + Tk Variables: builtin_keys: Menu variable for built-in keybindings. custom_keys: Menu variable for custom keybindings. are_keys_builtin: Selector for built-in or custom keybindings. keybinding: Action/key bindings. + + Data Attributes: + + Methods: + keybinding_selected: Bound to list_bindings button release. + get_new_keys: Command for button_new_keys. + set_keys_type: Command for are_keys_builtin. + delete_custom_keys: Command for button_delete_custom_keys. + save_as_new_key_set: Command for button_save_custom_keys. + + Widgets Bound to self: + list_bindings + button_new_keys + radio_keys_builtin + radio_keys_custom + opt_menu_keys_builtin + opt_menu_keys_custom + button_delete_custom_keys + new_custom_keys + + Widget Structure: + frame + frame_custom: LabelFrame + frame_target: Frame + target_title: Label + scroll_target_y: Scrollbar + scroll_target_x: Scrollbar + list_bindings: ListBox + button_new_keys: Button + frame_key_sets: LabelFrame + frames[0]: Frame + radio_keys_builtin: Radiobutton - are_keys_builtin + radio_keys_custom: Radiobutton - are_keys_builtin + opt_menu_keys_builtin: DynOptionMenu - builtin_keys + opt_menu_keys_custom: DynOptionMenu - custom_keys + new_custom_keys: Label + frames[1]: Frame + button_delete_custom_keys: Button + button_save_custom_keys: Button """ parent = self.parent self.builtin_keys = StringVar(parent) @@ -413,11 +526,56 @@ class ConfigDialog(Toplevel): def create_page_general(self): """Return frame of widgets for General tab. - Configuration attributes: + Tk Variables: win_width: Initial window width in characters. win_height: Initial window height in characters. startup_edit: Selector for opening in editor or shell mode. autosave: Selector for save prompt popup when using Run. + + Data Attributes: + + Methods: + help_source_selected: Bound to list_help button release. + helplist_item_edit: Command for button_helplist_edit. + helplist_item_add: Command for button_helplist_add. + helplist_item_remove: Command for button_helplist_remove. + + Widgets Bound to self: + radio_startup_edit + radio_startup_shell + radio_save_ask + radio_save_auto + entry_win_width + entry_win_height + list_help + button_helplist_edit + button_helplist_add + button_helplist_remove + + Widget Structure: + frame + frame_run: LabelFrame + startup_title: Label + radio_startup_edit: Radiobutton - startup_edit + radio_startup_shell: Radiobutton - startup_edit + frame_save: LabelFrame + run_save_title: Label + radio_save_ask: Radiobutton - autosave + radio_save_auto: Radiobutton - autosave + frame_win_size: LabelFrame + win_size_title: Label + win_width_title: Label + entry_win_width: Entry - win_width + win_height_title: Label + entry_win_height: Entry - win_height + frame_help: LabelFrame + frame_helplist: Frame + frame_helplist_buttons: Frame + button_helplist_edit + button_helplist_add + button_helplist_remove + scroll_helplist: Scrollbar + list_help: ListBox """ parent = self.parent self.win_width = StringVar(parent)