Lib/idlelib/configdialog.py
def extension_selected(self, event):
        "Handle selection of an extension from the list."
        newsel = self.extension_list.curselection()
        if newsel:
            newsel = self.extension_list.get(newsel)
        if newsel is None or newsel != self.current_extension:
            if self.current_extension:
                self.details_frame.config(text='')
                self.config_frame[self.current_extension].grid_forget()
                self.current_extension = None
        if newsel:
            self.details_frame.config(text=newsel)
            self.config_frame[newsel].grid(column=0, row=0, sticky='nsew')
            self.current_extension = newsel
Handle selection of an extension from the list.
Handle selection of an extension from the list.
Handle selection of an extension from the list .
def extension_selected(self, event):
        newsel = self.extension_list.curselection()
        if newsel:
            newsel = self.extension_list.get(newsel)
        if newsel is None or newsel != self.current_extension:
            if self.current_extension:
                self.details_frame.config(text='')
                self.config_frame[self.current_extension].grid_forget()
                self.current_extension = None
        if newsel:
            self.details_frame.config(text=newsel)
            self.config_frame[newsel].grid(column=0, row=0, sticky='nsew')
            self.current_extension = newsel
def extension_selected ( self , event ) : newsel = self . extension_list . curselection ( ) if newsel : newsel = self . extension_list . get ( newsel ) if newsel is None or newsel != self . current_extension : if self . current_extension : self . details_frame . config ( text = '' ) self . config_frame [ self . current_extension ] . grid_forget ( ) self . current_extension = None if newsel : self . details_frame . config ( text = newsel ) self . config_frame [ newsel ] . grid ( column = 0 , row = 0 , sticky = 'nsew' ) self . current_extension = newsel
Handle selection of an extension from the list.
Handle selection of an extension from the list .
"Handle selection of an extension from the list."
self
event