Logo Search packages:      
Sourcecode: guidance-power-manager version File versions

def guidance-power-manager::PowerManager::changePoweredBrightness (   self,
  level = None 
)

Mains-powered brigthness slider has been moved. 

Definition at line 876 of file guidance-power-manager.py.

00876                                                  :
        """ Mains-powered brigthness slider has been moved. """
        # Check if the state applies and adjust brightness immediately.
        if not self.powermanager.onBattery() and self.powermanager.hasBrightness:
            if not level:
                level = self.PoweredBrightnessSlider.value()
            self.powermanager.adjustBrightness(level)

    def changeBatteryBrightness(self, level=None):


Generated by  Doxygen 1.6.0   Back to index