@staticmethod
def button_bind(parent, name, func, what):
    """Find function in QMAinWindow layout as child and bind to it the action.

        :param parent: name of parent where look for items
        :param name: name of child in gui
        :param func: function to bind
        :param what: what element need to find
        """
    action = parent.findChild(what, name)
    action.clicked.connect(func)
