def METHOD_NAME(self):
    if self.initialized is False:
        return
    valid = (
        self.parent_widget.valid_family and
        self.valid_components and
        self.valid_repre_names
    )
    self.btn_publish.setEnabled(valid)