code: def updateStretch(self):
      ##Set the stretch values for this container to reflect its contents
      # print "updateStretch", self
      x = 0
      y = 0
      sizes = []
      for i in range(self.count()):
          wx, wy = self.widget(i).stretch()
          y += wy
          x = max(x, wx)
          sizes.append(wy)
          # print "  child", self.widget(i), wx, wy
      self.setStretch(x, y)
  
      # print sizes
      tot = float(sum(sizes))
      if tot == 0:
          scale = 1.0
      else:
          scale = self.height() / tot
      self.setSizes([int(s * scale) for s in sizes])
  
imports: import weakref
  from ..Qt import QtCore, QtWidgets
  from .Dock import Dock
label_desc: Use image node_id 3 for calling the VContainer obj's underlying member method code with example usage: obj.updateStretch() without return types