[vlc-commits] Position is now an enum
Olivier Aubert
git at videolan.org
Sat Jul 25 15:12:21 CEST 2020
vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Sat Jul 25 00:20:06 2020 +0200| [1f3ac43ee967e5a6dca814bedbd87fb8832559d6] | committer: Olivier Aubert
Position is now an enum
Closes #146
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=1f3ac43ee967e5a6dca814bedbd87fb8832559d6
---
generator/templates/header.py | 23 -----------------------
1 file changed, 23 deletions(-)
diff --git a/generator/templates/header.py b/generator/templates/header.py
index ddd9600..fb0ba0b 100755
--- a/generator/templates/header.py
+++ b/generator/templates/header.py
@@ -524,29 +524,6 @@ class PlaylistItem(_Cstruct):
def __str__(self):
return '%s #%d %s (uri %s)' % (self.__class__.__name__, self.id, self.name, self.uri)
-class Position(object):
- """Enum-like, immutable window position constants.
-
- See e.g. VideoMarqueeOption.Position.
- """
- Center = 0
- Left = 1
- CenterLeft = 1
- Right = 2
- CenterRight = 2
- Top = 4
- TopCenter = 4
- TopLeft = 5
- TopRight = 6
- Bottom = 8
- BottomCenter = 8
- BottomLeft = 9
- BottomRight = 10
- def __init__(self, *unused):
- raise TypeError('constants only')
- def __setattr__(self, *unused): #PYCHOK expected
- raise TypeError('immutable constants')
-
class Rectangle(_Cstruct):
_fields_ = [
('top', ctypes.c_int),
More information about the vlc-commits
mailing list