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

def powermanage::PowerManage::setScreensaverBlankOnly (   self,
  blankonly 
)

Switches a screensaver to blankonly, so cpu hungry screensavers will not drain the poor 
    battery.
# create a new DCOP-Client:
client = DCOPClient()
# connect the client to the local DCOP-server:
client.attach()
# create a DCOP-Application-Object to talk to amarok:
kdesktop = DCOPApp('kdesktop', client)
# call a DCOP-function:
ok, foo = kdesktop.KScreensaverIface.setBlankOnly(blankonly)
if not ok:
    debug("Failed to set kdesktop screensaver to blankonly.")
    return False
return True

Definition at line 478 of file powermanage.py.

00478                                                :
        """ Switches a screensaver to blankonly, so cpu hungry screensavers will not drain the poor 
            battery."""
        """
        # create a new DCOP-Client:
        client = DCOPClient()
        # connect the client to the local DCOP-server:
        client.attach()
        # create a DCOP-Application-Object to talk to amarok:
        kdesktop = DCOPApp('kdesktop', client)
        # call a DCOP-function:
        ok, foo = kdesktop.KScreensaverIface.setBlankOnly(blankonly)
        if not ok:
            debug("Failed to set kdesktop screensaver to blankonly.")
            return False
        return True
        """
        print "FIXME setScreensaverBlankOnly"

    def getIdleSeconds(self):


Generated by  Doxygen 1.6.0   Back to index