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

def guidance-power-manager::PowerManager::_initLid (   self  )  [private]

Check for lid support and disable widgets if it's not there. 

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

00102                       :
        """ Check for lid support and disable widgets if it's not there. """
        if not self.powermanager.hasLid:
            self.LaptopLidRadios.setEnabled(False)
            if self.powermanager.onBattery():
                self.powerHasBeenPlugged()
            else:
                self.powerHasBeenUnplugged()

    def _initCB(self, combo, options, values):


Generated by  Doxygen 1.6.0   Back to index