Skip to content

v0.2.0 + Patches

Choose a tag to compare

@Crozzers Crozzers released this 23 Aug 00:52

This release would have been v0.1.8 but that is less than 0.1.72 which should have been obvious to me.

Changes:

  • Functions no longer return False upon failure but they raise a ScreenBrightnessError. This was an effort to unify the various exceptions that get raised (wmi.x_wmi on Windows, FileNotFoundError and PermissionError on Linux)
  • get_brightness and set_brightness accept a new kwarg verbose_error=False. This controls the level of detail in the exceptions raised.
  • get_brightness(max_value=True) will only return 100 if the brightness can actually be retrieved. Otherwise it raises the ScreenBrightnessError

v0.2.1:

  • Fixed get_brightness attribute errors for Windows
  • The Windows version will now set the brightness for ALL wmi brightness methods (not just the first one)
  • If there are multiple brightness methods then get_brightness will return a list of brightness values
  • Added a copy of the MIT license to the files

v0.2.2

  • Updated README with an FAQ section
  • Minor adjustment to fade_brightness