(self)
Update the text widgets' font if it is changed
Update the text widgets' font if it is changed
Update the text widgets font if it is changed
def ResetFont(self):
        "Update the text widgets' font if it is changed"
        # Called from configdialog.py

        # Update the code context widget first, since its height affects
        # the height of the text widget.  This avoids double re-rendering.
        if self.code_context is not None:
            self.code_context.update_font()
        # Next, update the line numbers widget, since its width affects
        # the width of the text widget.
        if self.line_numbers is not None:
            self.line_numbers.update_font()
        # Finally, update the main text widget.
        new_font = idleConf.GetFont(self.root, 'main', 'EditorWindow')
        self.text['font'] = new_font
        self.set_width()
def ResetFont ( self ) : # Called from configdialog.py # Update the code context widget first, since its height affects # the height of the text widget.  This avoids double re-rendering. if self . code_context is not None : self . code_context . update_font ( ) # Next, update the line numbers widget, since its width affects # the width of the text widget. if self . line_numbers is not None : self . line_numbers . update_font ( ) # Finally, update the main text widget. new_font = idleConf . GetFont ( self . root , 'main' , 'EditorWindow' ) self . text [ 'font' ] = new_font self . set_width ( )