(self)
Update the sidebar text font, usually after config changes.
Update the sidebar text font, usually after config changes.
Update the sidebar text font usually after config changes .
def update_font(self):
        """Update the sidebar text font, usually after config changes."""
        font = idleConf.GetFont(self.text, 'main', 'EditorWindow')
        tk_font = Font(self.text, font=font)
        char_width = max(tk_font.measure(char) for char in ['>', '.'])
        self.canvas.configure(width=char_width * 3 + 4)
        self.font = font
        self.change_callback()
def update_font ( self ) : font = idleConf . GetFont ( self . text , 'main' , 'EditorWindow' ) tk_font = Font ( self . text , font = font ) char_width = max ( tk_font . measure ( char ) for char in [ '>' , '.' ] ) self . canvas . configure ( width = char_width * 3 + 4 ) self . font = font self . change_callback ( )