def METHOD_NAME(self, event=None):
    if self.menu is None:
        self.menu = QtWidgets.QMenu()
        self.menu.setTitle(self.name+ " options..")
        green = QtGui.QAction("Turn green", self.menu)
        green.triggered.connect(self.setGreen)
        self.menu.addAction(green)
        self.menu.green = green
        blue = QtGui.QAction("Turn blue", self.menu)
        blue.triggered.connect(self.setBlue)
        self.menu.addAction(blue)
        self.menu.green = blue
        alpha = QtWidgets.QWidgetAction(self.menu)
        alphaSlider = QtWidgets.QSlider()
        alphaSlider.setOrientation(QtCore.Qt.Orientation.Horizontal)
        alphaSlider.setMaximum(255)
        alphaSlider.setValue(255)
        alphaSlider.valueChanged.connect(self.setAlpha)
        alpha.setDefaultWidget(alphaSlider)
        self.menu.addAction(alpha)
        self.menu.alpha = alpha
        self.menu.alphaSlider = alphaSlider
    return self.menu