class_docstr: Code stack viewer for debugger GUI.
code: def show_source(self, index):
      if not (0 <= index < len(self.stack)):
          return
      frame, lineno = self.stack[index]
      code = frame.f_code
      filename = code.co_filename
      if os.path.isfile(filename):
          edit = self.flist.open(filename)
          if edit:
              edit.gotoline(lineno)
  
imports: import bdb
  import os
  from tkinter import *
  from tkinter.ttk import Frame, Scrollbar
  from idlelib import macosx
  from idlelib.scrolledlist import ScrolledList
  from idlelib.window import ListedToplevel
label_desc: Use image node_id 9 for calling the StackViewer obj's underlying member method code with example usage: obj.show_source(index) without return types