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

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

Remove non-battery-related widgets if there's no battery bay. 

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

00321                           :
        """ Remove non-battery-related widgets if there's no battery bay. """
        if not self.powermanager.hasBattery:
            # Disable the Batterybox in the config dialogue,
            self.BatteryBox.setEnabled(False)
            # And change the icon in the systray, remove the restore option
            # This way, we're basically becoming a systray applet, you can
            # hibernate and suspend from
            self.systray.setIcon(QIcon(BarIcon(self.icon)))
        if self.powermanager.hasAC:
            self.wasOnBattery = self.powermanager.onBattery()

    def configToUi(self):


Generated by  Doxygen 1.6.0   Back to index