(self, action)
Changes the value of the brightness according to the entry selected in the
            Brightness menu. The selected entry is checked, and the previously selected
            entry is unchecked.
            The color separations are updated to use the new value for the brightness.
Changes the value of the brightness according to the entry selected in the
            Brightness menu. The selected entry is checked, and the previously selected
            entry is unchecked.
            The color separations are updated to use the new value for the brightness.
Changes the value of the brightness according to the entry selected in the Brightness menu . The selected entry is checked and the previously selected entry is unchecked . The color separations are updated to use the new value for the brightness .
def setBrightness(self, action):
        """ Changes the value of the brightness according to the entry selected in the
            Brightness menu. The selected entry is checked, and the previously selected
            entry is unchecked.
            The color separations are updated to use the new value for the brightness.
        """
        if action not in self.menuMap or self.scaledImage.isNull():
            return

        self.brightness = self.brightnessValueMap.get(self.menuMap[action])
        if self.brightness is None:
            return

        self.currentBrightness.setChecked(False)
        self.currentBrightness = action
        self.currentBrightness.setChecked(True)

        self.createImage()
def setBrightness ( self , action ) : if action not in self . menuMap or self . scaledImage . isNull ( ) : return self . brightness = self . brightnessValueMap . get ( self . menuMap [ action ] ) if self . brightness is None : return self . currentBrightness . setChecked ( False ) self . currentBrightness = action self . currentBrightness . setChecked ( True ) self . createImage ( )