class_docstr: Basic rectangle representation using kiwi solver variables
class_docstr_tok: ["Basic","rectangle","representation","using","kiwi","solver","variables"]
code: def parent_constrain(self):
      parent = self.parent
      hc = [
          self.left >= parent.left,
          self.bottom >= parent.bottom,
          self.top <= parent.top,
          self.right <= parent.right,
      ]
      for c in hc:
          self.solver.addConstraint(c | "required")
  
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 6 for calling the LayoutBox obj's underlying member method code with example usage: obj.parent_constrain() without return types