code: def resize(self, width, height):
          
          # set the internal listbox width to be 0 as otherwise it maintains a default
          # size and you cant make the control smaller than that.
          self._listbox._set_tk_config("width", None if width is None else 0)
          self._set_propagation(width, height)
          super(ListBox, self).resize(width, height)
docs: Resizes the widget.
  
          :param int width:
              The width of the widget.
  
          :param int height:
              The height of the widget.