Browse Source

Added brightness setter

sisyphus
JezerM 4 years ago
parent
commit
8f21257af8
  1. 4
      web-greeter/bridge/Greeter.py

4
web-greeter/bridge/Greeter.py

@ -181,6 +181,10 @@ class Greeter(BridgeObject):
def brightness(self): def brightness(self):
return getBrightness(self) return getBrightness(self)
@brightness.setter
def brightness(self, quantity):
return changeBrightness(self, "-set", quantity)
@bridge.prop(bool, notify=noop_signal) @bridge.prop(bool, notify=noop_signal)
def can_hibernate(self): def can_hibernate(self):
return LightDM.get_can_hibernate() return LightDM.get_can_hibernate()

Loading…
Cancel
Save