X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/57b3b9f912ab6271173a71028ccedbe9cf76b9ac..a6c79626b2d248d0484b5242c0a2051da8ec84d1:/screen.py diff --git a/screen.py b/screen.py index 78eafa1..d567912 100644 --- a/screen.py +++ b/screen.py @@ -36,11 +36,16 @@ def processOutputIt(*args): class RelativeScreenPosition(Enum): '''Represents the relative position of the external screen to the internal one''' - LEFT = 0 - RIGHT = 1 - ABOVE = 2 - BELOW = 3 - MIRROR = 4 + LEFT = ("left of") + RIGHT = ("right of") + ABOVE = ("above") + BELOW = ("below") + MIRROR = ("same as") + def __init__(self, text): + # auto numbering + cls = self.__class__ + self._value_ = len(cls.__members__) + self.text = text class Resolution: