<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def updateFromInspectorRegItem(self, inspectorRegItem):
 """ Updates the label from the full name of the InspectorRegItem """

        library, name = inspectorRegItem.splitName()
        label = "{} ({})".format(name, library) if library else name
        #self.label.setText(label)
        self.menuButton.setText(label)