<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_menu(self, ):
 """Setup the menu that the menu_tb button uses :returns: None :rtype: None :raises: None """

        self.menu = QtGui.QMenu(self)
        actions = self.reftrack.get_additional_actions()
        self.actions = []
        for a in actions:
            if a.icon:
                qaction = QtGui.QAction(a.icon, a.name, self)
            else:
                qaction = QtGui.QAction(a.name, self)
            qaction.setCheckable(a.checkable)
            qaction.setChecked(a.checked)
            qaction.setEnabled(a.enabled)
            qaction.triggered.connect(a.action)
            self.actions.append(qaction)
            self.menu.addAction(qaction)
        self.menu_tb.setMenu(self.menu)