'Create and return a :class:`QToolButton` for action.'

def createButtonForAction(self, action):

    button = _ToolGridButton(self)
    button.setDefaultAction(action)
    if self.__buttonSize.isValid():
        button.setFixedSize(self.__buttonSize)
    if self.__iconSize.isValid():
        button.setIconSize(self.__iconSize)
    button.setToolButtonStyle(self.__toolButtonStyle)
    button.setProperty('tool-grid-button', True)
    return button
