class_docstr: Container for other widgets.
  
  This widget is designed for internal use only! Its role is to lay out all contained widgets.
class_docstr_tok: ["Container","for","other","widgets",".","This","widget","is","designed","for","internal","use","only","!","Its","role","is","to","lay","out","all","contained","widgets","."]
code: def __init__(self, widgets, file_mode):
      super(ProgressBarWidget, self).__init__()
      self._file_mode = file_mode
      self._width = min(self._get_terminal_size(), 100)
      self._encoding = (sys.stdout.encoding or "").lower()
      wlist = []
      for widget in widgets or []:
          widget.set_mode("file" if file_mode else "tty")
          widget.set_encoding(self._encoding)
          wlist.append(widget)
      self._to_render = None  # Render this string on the next rendering cycle. Rarely used.
      self._widgets = tuple(wlist)
      self._widget_lengths = self._compute_widget_sizes()
      self._rendered = ""
  
imports: from h2o.utils.compatibility import *
  import math
  import os
  import sys
  import time
  from types import FunctionType, GeneratorType, MethodType
  from h2o.utils.shared_utils import clamp
  from h2o.utils.typechecks import assert_is_type, is_type, numeric
label_desc: Use image node_id 1 to create a new _ProgressBarCompoundWidget object from inherited base classes: ProgressBarWidget with example: obj = _ProgressBarCompoundWidget(widgets, file_mode)