Commit 8994bf8f authored by Olivier Aubert's avatar Olivier Aubert

python-ctypes: fix docstrings

parent b20a8ec1
...@@ -2,10 +2,10 @@ class Instance: ...@@ -2,10 +2,10 @@ class Instance:
"""Create a new Instance instance. """Create a new Instance instance.
It may take as parameter either: It may take as parameter either:
* a string - a string
* a list of strings as first parameters - a list of strings as first parameters
* the parameters given as the constructor parameters (must be strings) - the parameters given as the constructor parameters (must be strings)
* a MediaControl instance - a MediaControl instance
""" """
def __new__(cls, *p): def __new__(cls, *p):
if p and p[0] == 0: if p and p[0] == 0:
...@@ -51,10 +51,10 @@ class MediaControl: ...@@ -51,10 +51,10 @@ class MediaControl:
"""Create a new MediaControl instance """Create a new MediaControl instance
It may take as parameter either: It may take as parameter either:
* a string - a string
* a list of strings as first parameters - a list of strings as first parameters
* the parameters given as the constructor parameters (must be strings) - the parameters given as the constructor parameters (must be strings)
* a vlc.Instance - a vlc.Instance
""" """
def __new__(cls, *p): def __new__(cls, *p):
if p and p[0] == 0: if p and p[0] == 0:
...@@ -81,8 +81,8 @@ class MediaPlayer: ...@@ -81,8 +81,8 @@ class MediaPlayer:
"""Create a new MediaPlayer instance. """Create a new MediaPlayer instance.
It may take as parameter either: It may take as parameter either:
* a string (media URI). In this case, a vlc.Instance will be created. - a string (media URI). In this case, a vlc.Instance will be created.
* a vlc.Instance - a vlc.Instance
""" """
def __new__(cls, *p): def __new__(cls, *p):
if p and p[0] == 0: if p and p[0] == 0:
...@@ -109,8 +109,8 @@ class MediaListPlayer: ...@@ -109,8 +109,8 @@ class MediaListPlayer:
"""Create a new MediaPlayer instance. """Create a new MediaPlayer instance.
It may take as parameter either: It may take as parameter either:
* a vlc.Instance - a vlc.Instance
* nothing - nothing
""" """
def __new__(cls, *p): def __new__(cls, *p):
if p and p[0] == 0: if p and p[0] == 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment