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: Enforce min <= value <= max
docstr_tok: ["Enforce","min","<","=","value","<","=","max"]
code: def _validate_min(self, proposal):
      """Enforce min <= value <= max"""
      min = proposal["value"]
      if min > self.max:
          raise TraitError("setting min > max")
      if min > self.value:
          self.value = min
      return min
  
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 3 for calling the _BoundedInt obj's underlying member method code with example usage: obj._validate_min(proposal) and returns: min