Lib/idlelib/configdialog.py
def create_page_general(self):
        """Return frame of widgets for General tab.

        Configuration attributes:
            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.
        """
        parent = self.parent
        self.win_width = StringVar(parent)
        self.win_height = StringVar(parent)
        self.startup_edit = IntVar(parent)
        self.autosave = IntVar(parent)

        #widget creation
        #body
        frame = self.tab_pages.pages['General'].frame
        #body section frames
        frame_run = LabelFrame(frame, borderwidth=2, relief=GROOVE,
                              text=' Startup Preferences ')
        frame_save = LabelFrame(frame, borderwidth=2, relief=GROOVE,
                               text=' autosave Preferences ')
        frame_win_size = Frame(frame, borderwidth=2, relief=GROOVE)
        frame_help = LabelFrame(frame, borderwidth=2, relief=GROOVE,
                               text=' Additional Help Sources ')
        #frame_run
        startup_title = Label(frame_run, text='At Startup')
        self.radio_startup_edit = Radiobutton(
                frame_run, variable=self.startup_edit, value=1,
                text="Open Edit Window")
        self.radio_startup_shell = Radiobutton(
                frame_run, variable=self.startup_edit, value=0,
                text='Open Shell Window')
        #frame_save
        run_save_title = Label(frame_save, text='At Start of Run (F5)  ')
        self.radio_save_ask = Radiobutton(
                frame_save, variable=self.autosave, value=0,
                text="Prompt to Save")
        self.radio_save_auto = Radiobutton(
                frame_save, variable=self.autosave, value=1,
                text='No Prompt')
        #frame_win_size
        win_size_title = Label(
                frame_win_size, text='Initial Window Size  (in characters)')
        win_width_title = Label(frame_win_size, text='Width')
        self.entry_win_width = Entry(
                frame_win_size, textvariable=self.win_width, width=3)
        win_height_title = Label(frame_win_size, text='Height')
        self.entry_win_height = Entry(
                frame_win_size, textvariable=self.win_height, width=3)
        #frame_help
        frame_helplist = Frame(frame_help)
        frame_helplist_buttons = Frame(frame_helplist)
        scroll_helplist = Scrollbar(frame_helplist)
        self.list_help = Listbox(
                frame_helplist, height=5, takefocus=FALSE,
                exportselection=FALSE)
        scroll_helplist.config(command=self.list_help.yview)
        self.list_help.config(yscrollcommand=scroll_helplist.set)
        self.list_help.bind('<ButtonRelease-1>', self.help_source_selected)
        self.button_helplist_edit = Button(
                frame_helplist_buttons, text='Edit', state=DISABLED,
                width=8, command=self.helplist_item_edit)
        self.button_helplist_add = Button(
                frame_helplist_buttons, text='Add',
                width=8, command=self.helplist_item_add)
        self.button_helplist_remove = Button(
                frame_helplist_buttons, text='Remove', state=DISABLED,
                width=8, command=self.helplist_item_remove)

        #widget packing
        #body
        frame_run.pack(side=TOP, padx=5, pady=5, fill=X)
        frame_save.pack(side=TOP, padx=5, pady=5, fill=X)
        frame_win_size.pack(side=TOP, padx=5, pady=5, fill=X)
        frame_help.pack(side=TOP, padx=5, pady=5, expand=TRUE, fill=BOTH)
        #frame_run
        startup_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
        self.radio_startup_shell.pack(side=RIGHT, anchor=W, padx=5, pady=5)
        self.radio_startup_edit.pack(side=RIGHT, anchor=W, padx=5, pady=5)
        #frame_save
        run_save_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
        self.radio_save_auto.pack(side=RIGHT, anchor=W, padx=5, pady=5)
        self.radio_save_ask.pack(side=RIGHT, anchor=W, padx=5, pady=5)
        #frame_win_size
        win_size_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
        self.entry_win_height.pack(side=RIGHT, anchor=E, padx=10, pady=5)
        win_height_title.pack(side=RIGHT, anchor=E, pady=5)
        self.entry_win_width.pack(side=RIGHT, anchor=E, padx=10, pady=5)
        win_width_title.pack(side=RIGHT, anchor=E, pady=5)
        #frame_help
        frame_helplist_buttons.pack(side=RIGHT, padx=5, pady=5, fill=Y)
        frame_helplist.pack(side=TOP, padx=5, pady=5, expand=TRUE, fill=BOTH)
        scroll_helplist.pack(side=RIGHT, anchor=W, fill=Y)
        self.list_help.pack(side=LEFT, anchor=E, expand=TRUE, fill=BOTH)
        self.button_helplist_edit.pack(side=TOP, anchor=W, pady=5)
        self.button_helplist_add.pack(side=TOP, anchor=W)
        self.button_helplist_remove.pack(side=TOP, anchor=W, pady=5)
        return frame
Return frame of widgets for General tab.

        Configuration attributes:
            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.
        
Return frame of widgets for General tab.
Configuration attributes:
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.
Return frame of widgets for General tab . Configuration attributes : 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 .
def create_page_general(self):
        parent = self.parent
        self.win_width = StringVar(parent)
        self.win_height = StringVar(parent)
        self.startup_edit = IntVar(parent)
        self.autosave = IntVar(parent)
        frame = self.tab_pages.pages['General'].frame
         section frames
        frame_run = LabelFrame(frame, borderwidth=2, relief=GROOVE,
                              text=' Startup Preferences ')
        frame_save = LabelFrame(frame, borderwidth=2, relief=GROOVE,
                               text=' autosave Preferences ')
        frame_win_size = Frame(frame, borderwidth=2, relief=GROOVE)
        frame_help = LabelFrame(frame, borderwidth=2, relief=GROOVE,
                               text=' Additional Help Sources ')
        startup_title = Label(frame_run, text='At Startup')
        self.radio_startup_edit = Radiobutton(
                frame_run, variable=self.startup_edit, value=1,
                text="Open Edit Window")
        self.radio_startup_shell = Radiobutton(
                frame_run, variable=self.startup_edit, value=0,
                text='Open Shell Window')
        run_save_title = Label(frame_save, text='At Start of Run (F5)  ')
        self.radio_save_ask = Radiobutton(
                frame_save, variable=self.autosave, value=0,
                text="Prompt to Save")
        self.radio_save_auto = Radiobutton(
                frame_save, variable=self.autosave, value=1,
                text='No Prompt')
        win_size_title = Label(
                frame_win_size, text='Initial Window Size  (in characters)')
        win_width_title = Label(frame_win_size, text='Width')
        self.entry_win_width = Entry(
                frame_win_size, textvariable=self.win_width, width=3)
        win_height_title = Label(frame_win_size, text='Height')
        self.entry_win_height = Entry(
                frame_win_size, textvariable=self.win_height, width=3)
        frame_helplist = Frame(frame_help)
        frame_helplist_buttons = Frame(frame_helplist)
        scroll_helplist = Scrollbar(frame_helplist)
        self.list_help = Listbox(
                frame_helplist, height=5, takefocus=FALSE,
                exportselection=FALSE)
        scroll_helplist.config(command=self.list_help.yview)
        self.list_help.config(yscrollcommand=scroll_helplist.set)
        self.list_help.bind('<ButtonRelease-1>', self.help_source_selected)
        self.button_helplist_edit = Button(
                frame_helplist_buttons, text='Edit', state=DISABLED,
                width=8, command=self.helplist_item_edit)
        self.button_helplist_add = Button(
                frame_helplist_buttons, text='Add',
                width=8, command=self.helplist_item_add)
        self.button_helplist_remove = Button(
                frame_helplist_buttons, text='Remove', state=DISABLED,
                width=8, command=self.helplist_item_remove)
        frame_run.pack(side=TOP, padx=5, pady=5, fill=X)
        frame_save.pack(side=TOP, padx=5, pady=5, fill=X)
        frame_win_size.pack(side=TOP, padx=5, pady=5, fill=X)
        frame_help.pack(side=TOP, padx=5, pady=5, expand=TRUE, fill=BOTH)
        startup_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
        self.radio_startup_shell.pack(side=RIGHT, anchor=W, padx=5, pady=5)
        self.radio_startup_edit.pack(side=RIGHT, anchor=W, padx=5, pady=5)
        run_save_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
        self.radio_save_auto.pack(side=RIGHT, anchor=W, padx=5, pady=5)
        self.radio_save_ask.pack(side=RIGHT, anchor=W, padx=5, pady=5)
        win_size_title.pack(side=LEFT, anchor=W, padx=5, pady=5)
        self.entry_win_height.pack(side=RIGHT, anchor=E, padx=10, pady=5)
        win_height_title.pack(side=RIGHT, anchor=E, pady=5)
        self.entry_win_width.pack(side=RIGHT, anchor=E, padx=10, pady=5)
        win_width_title.pack(side=RIGHT, anchor=E, pady=5)
        frame_helplist_buttons.pack(side=RIGHT, padx=5, pady=5, fill=Y)
        frame_helplist.pack(side=TOP, padx=5, pady=5, expand=TRUE, fill=BOTH)
        scroll_helplist.pack(side=RIGHT, anchor=W, fill=Y)
        self.list_help.pack(side=LEFT, anchor=E, expand=TRUE, fill=BOTH)
        self.button_helplist_edit.pack(side=TOP, anchor=W, pady=5)
        self.button_helplist_add.pack(side=TOP, anchor=W)
        self.button_helplist_remove.pack(side=TOP, anchor=W, pady=5)
        return frame
def create_page_general ( self ) : parent = self . parent self . win_width = StringVar ( parent ) self . win_height = StringVar ( parent ) self . startup_edit = IntVar ( parent ) self . autosave = IntVar ( parent ) frame = self . tab_pages . pages [ 'General' ] . frame frame_run = LabelFrame ( frame , borderwidth = 2 , relief = GROOVE , text = ' Startup Preferences ' ) frame_save = LabelFrame ( frame , borderwidth = 2 , relief = GROOVE , text = ' autosave Preferences ' ) frame_win_size = Frame ( frame , borderwidth = 2 , relief = GROOVE ) frame_help = LabelFrame ( frame , borderwidth = 2 , relief = GROOVE , text = ' Additional Help Sources ' ) startup_title = Label ( frame_run , text = 'At Startup' ) self . radio_startup_edit = Radiobutton ( frame_run , variable = self . startup_edit , value = 1 , text = "Open Edit Window" ) self . radio_startup_shell = Radiobutton ( frame_run , variable = self . startup_edit , value = 0 , text = 'Open Shell Window' ) run_save_title = Label ( frame_save , text = 'At Start of Run (F5)  ' ) self . radio_save_ask = Radiobutton ( frame_save , variable = self . autosave , value = 0 , text = "Prompt to Save" ) self . radio_save_auto = Radiobutton ( frame_save , variable = self . autosave , value = 1 , text = 'No Prompt' ) win_size_title = Label ( frame_win_size , text = 'Initial Window Size  (in characters)' ) win_width_title = Label ( frame_win_size , text = 'Width' ) self . entry_win_width = Entry ( frame_win_size , textvariable = self . win_width , width = 3 ) win_height_title = Label ( frame_win_size , text = 'Height' ) self . entry_win_height = Entry ( frame_win_size , textvariable = self . win_height , width = 3 ) frame_helplist = Frame ( frame_help ) frame_helplist_buttons = Frame ( frame_helplist ) scroll_helplist = Scrollbar ( frame_helplist ) self . list_help = Listbox ( frame_helplist , height = 5 , takefocus = FALSE , exportselection = FALSE ) scroll_helplist . config ( command = self . list_help . yview ) self . list_help . config ( yscrollcommand = scroll_helplist . set ) self . list_help . bind ( '<ButtonRelease-1>' , self . help_source_selected ) self . button_helplist_edit = Button ( frame_helplist_buttons , text = 'Edit' , state = DISABLED , width = 8 , command = self . helplist_item_edit ) self . button_helplist_add = Button ( frame_helplist_buttons , text = 'Add' , width = 8 , command = self . helplist_item_add ) self . button_helplist_remove = Button ( frame_helplist_buttons , text = 'Remove' , state = DISABLED , width = 8 , command = self . helplist_item_remove ) frame_run . pack ( side = TOP , padx = 5 , pady = 5 , fill = X ) frame_save . pack ( side = TOP , padx = 5 , pady = 5 , fill = X ) frame_win_size . pack ( side = TOP , padx = 5 , pady = 5 , fill = X ) frame_help . pack ( side = TOP , padx = 5 , pady = 5 , expand = TRUE , fill = BOTH ) startup_title . pack ( side = LEFT , anchor = W , padx = 5 , pady = 5 ) self . radio_startup_shell . pack ( side = RIGHT , anchor = W , padx = 5 , pady = 5 ) self . radio_startup_edit . pack ( side = RIGHT , anchor = W , padx = 5 , pady = 5 ) run_save_title . pack ( side = LEFT , anchor = W , padx = 5 , pady = 5 ) self . radio_save_auto . pack ( side = RIGHT , anchor = W , padx = 5 , pady = 5 ) self . radio_save_ask . pack ( side = RIGHT , anchor = W , padx = 5 , pady = 5 ) win_size_title . pack ( side = LEFT , anchor = W , padx = 5 , pady = 5 ) self . entry_win_height . pack ( side = RIGHT , anchor = E , padx = 10 , pady = 5 ) win_height_title . pack ( side = RIGHT , anchor = E , pady = 5 ) self . entry_win_width . pack ( side = RIGHT , anchor = E , padx = 10 , pady = 5 ) win_width_title . pack ( side = RIGHT , anchor = E , pady = 5 ) frame_helplist_buttons . pack ( side = RIGHT , padx = 5 , pady = 5 , fill = Y ) frame_helplist . pack ( side = TOP , padx = 5 , pady = 5 , expand = TRUE , fill = BOTH ) scroll_helplist . pack ( side = RIGHT , anchor = W , fill = Y ) self . list_help . pack ( side = LEFT , anchor = E , expand = TRUE , fill = BOTH ) self . button_helplist_edit . pack ( side = TOP , anchor = W , pady = 5 ) self . button_helplist_add . pack ( side = TOP , anchor = W ) self . button_helplist_remove . pack ( side = TOP , anchor = W , pady = 5 ) return frame
Return frame of widgets for General tab.
Return frame of widgets for General tab .
"""Return frame of widgets for General tab.

        Configuration attributes:
            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.
        """ #widget creation #body #body section frames #frame_run #frame_save #frame_win_size #frame_help #widget packing #body #frame_run #frame_save #frame_win_size #frame_help
self