class_docstr: Base class for widgets that represent an integer bounded from above and below.
      
class_docstr_tok: ["Base","class","for","widgets","that","represent","an","integer","bounded","from","above","and","below","."]
docstr: Cap and floor value
docstr_tok: ["Cap","and","floor","value"]
code: def _validate_value(self, proposal):
      """Cap and floor value"""
      value = proposal["value"]
      if self.min > value or self.max < value:
          value = min(max(value, self.min), self.max)
      return value
  
imports: from .widget_description import DescriptionWidget, DescriptionStyle
  from .valuewidget import ValueWidget
  from .widget import register, widget_serialization
  from .widget_core import CoreWidget
  from traitlets import Instance
  from .trait_types import Color, InstanceDict, NumberFormat
  from traitlets import Unicode, CInt, Bool, CaselessStrEnum, Tuple, TraitError, default, validate
label_desc: Use image node_id 2 for calling the _BoundedInt obj's underlying member method code with example usage: obj._validate_value(proposal) and returns: value