X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/21144381bdc37f521916c138522b3cfac3eb3e46..b098177b57f9e0ed811bbaaad0d8a09486101cd1:/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: