class_docstr: Line numbers support for editor windows.
docstr: Update the sidebar text colors, usually after config changes.
docstr_tok: ["Update","the","sidebar","text","colors",",","usually","after","config","changes","."]
code: def update_colors(self):
      """Update the sidebar text colors, usually after config changes."""
      colors = idleConf.GetHighlight(
          idleConf.CurrentTheme(), "linenumber"
      )
      foreground = colors["foreground"]
      background = colors["background"]
      self.sidebar_text.config(
          fg=foreground,
          bg=background,
          selectforeground=foreground,
          selectbackground=background,
          inactiveselectbackground=background,
      )
  
imports: import contextlib
  import functools
  import itertools
  import tkinter
  from tkinter.font import Font
  from idlelib.config import idleConf
  from idlelib.delegator import Delegator
  from idlelib import macosx
label_desc: Use image node_id 5 for calling the LineNumbers obj's underlying member method code with example usage: obj.update_colors() without return types