class_docstr: Basic rectangle representation using kiwi solver variables
class_docstr_tok: ["Basic","rectangle","representation","using","kiwi","solver","variables"]
docstr: Constrain the width of the layout box.  `width` is
  either a float or a layoutbox.width.
docstr_tok: ["Constrain","the","width","of","the","layout","box",".","`","width","`","is","either","a","float","or","a","layoutbox.width","."]
code: def constrain_width(self, width, strength="strong"):
      """
      Constrain the width of the layout box.  `width` is
      either a float or a layoutbox.width.
      """
      c = self.width == width
      self.solver.addConstraint(c | strength)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import itertools
  import kiwisolver
  import logging
  import numpy
  import warnings
  import matplotlib
label_desc: Use image node_id 26 for calling the LayoutBox obj's underlying member method code with example usage: obj.constrain_width(width, strength) without return types