class_docstr: Browse module classes and functions in IDLE.
      
class_docstr_tok: ["Browse","module","classes","and","functions","in","IDLE","."]
docstr: Create a window for browsing a module's structure.
  
  Args:
      master: parent for widgets.
      path: full path of file to browse.
      _htest - bool; change box location when running htest.
      -utest - bool; suppress contents when running unittest.
  
  Global variables:
      file_open: Function used for opening a file.
  
  Instance variables:
      name: Module name.
      file: Full path and module with supported extension.
          Used in creating ModuleBrowserTreeItem as the rootnode for
          the tree and subsequently in the children.
docstr_tok: ["Create","a","window","for","browsing","a","module","'s","structure",".","Args",":","master",":","parent","for","widgets",".","path",":","full","path","of","file","to","browse",".","_htest","-","bool",";","change","box","location","when","running","htest",".","-utest","-","bool",";","suppress","contents","when","running","unittest",".","Global","variables",":","file_open",":","Function","used","for","opening","a","file",".","Instance","variables",":","name",":","Module","name",".","file",":","Full","path","and","module","with","supported","extension",".","Used","in","creating","ModuleBrowserTreeItem","as","the","rootnode","for","the","tree","and","subsequently","in","the","children","."]
code: def __init__(self, master, path, *, _htest=False, _utest=False):
      """Create a window for browsing a module's structure.
  
      Args:
          master: parent for widgets.
          path: full path of file to browse.
          _htest - bool; change box location when running htest.
          -utest - bool; suppress contents when running unittest.
  
      Global variables:
          file_open: Function used for opening a file.
  
      Instance variables:
          name: Module name.
          file: Full path and module with supported extension.
              Used in creating ModuleBrowserTreeItem as the rootnode for
              the tree and subsequently in the children.
      """
      self.master = master
      self.path = path
      self._htest = _htest
      self._utest = _utest
      self.init()
  
imports: import os
  import pyclbr
  import sys
  from idlelib.config import idleConf
  from idlelib import pyshell
  from idlelib.tree import TreeNode, TreeItem, ScrolledCanvas
  from idlelib.util import py_extensions
  from idlelib.window import ListedToplevel
label_desc: Use image node_id 1 to create a new ModuleBrowser object  with example: obj = ModuleBrowser(master, path)