code: def set_children_padding(widget, types, height=None, width=None):
      
  
      for type in types:
          for child in widget.findChildren(type):
              child.setStyleSheet("{0}{{height: {1}px; width: {2}px;}}".format(
                  type.__name__,
                  child.fontMetrics().height() + (height if height is not None else 0) * 2,
                  child.fontMetrics().width(child.text()) + (width if width is not None else 0) * 2))
      return True
docs: Sets given Widget children padding.
  
      :param widget: Widget to sets the children padding.
      :type widget: QWidget
      :param types: Children types.
      :type types: tuple or list
      :param height: Height padding.
      :type height: int
      :param width: Width padding.
      :type width: int
      :return: Definition success.
      :rtype: bool