From 8f21257af8f50ef4769e70ee20ecaf074aa3a3a6 Mon Sep 17 00:00:00 2001 From: JezerM Date: Mon, 28 Jun 2021 21:40:20 -0600 Subject: [PATCH] Added brightness setter --- web-greeter/bridge/Greeter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web-greeter/bridge/Greeter.py b/web-greeter/bridge/Greeter.py index bc53781..32e2d5d 100644 --- a/web-greeter/bridge/Greeter.py +++ b/web-greeter/bridge/Greeter.py @@ -181,6 +181,10 @@ class Greeter(BridgeObject): def brightness(self): return getBrightness(self) + @brightness.setter + def brightness(self, quantity): + return changeBrightness(self, "-set", quantity) + @bridge.prop(bool, notify=noop_signal) def can_hibernate(self): return LightDM.get_can_hibernate()