docstr: Update context information and lines visible in the context pane.
  
          
docstr_tok: ["Update","context","information","and","lines","visible","in","the","context","pane","."]
code: def update_code_context(self):
      """Update context information and lines visible in the context pane."""
      new_topvisible = int(self.text.index("@0,0").split(".")[0])
      if self.topvisible == new_topvisible:  # haven't scrolled
          return
      if self.topvisible < new_topvisible:  # scroll down
          lines, lastindent = self.get_context(
              new_topvisible, self.topvisible
          )
          # retain only context info applicable to the region
          # between topvisible and new_topvisible:
          while self.info[-1][1] >= lastindent:
              del self.info[-1]
      elif self.topvisible > new_topvisible:  # scroll up
          stopindent = self.info[-1][1] + 1
          # retain only context info associated
          # with lines above new_topvisible:
          while self.info[-1][0] >= new_topvisible:
              stopindent = self.info[-1][1]
              del self.info[-1]
          lines, lastindent = self.get_context(
              new_topvisible, self.info[-1][0] + 1, stopindent
          )
      self.info.extend(lines)
      self.topvisible = new_topvisible
      # empty lines in context pane:
      context_strings = [""] * max(
          0, self.context_depth - len(self.info)
      )
      # followed by the context hint lines:
      context_strings += [
          x[2] for x in self.info[-self.context_depth :]
      ]
      self.label["text"] = "\n".join(context_strings)
  
file_path: catboost/contrib/tools/python/src/Lib/idlelib/CodeContext.py
imports: import Tkinter
  from Tkconstants import TOP, LEFT, X, W, SUNKEN
  import re
  from sys import maxint
  from idlelib.configHandler import idleConf
label_desc: Use image node_id 5 for calling the CodeContext obj's underlying member method code with example usage: obj.update_code_context() without return types