mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
overrides: implement Gst.Structure.__setitem__
This commit is contained in:
parent
33d57f045a
commit
827a137189
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ __all__.append('Pipeline')
|
|||
class Structure(Gst.Structure):
|
||||
def __getitem__(self, key):
|
||||
return self.get_value(key)
|
||||
def __setitem__(self, key, value):
|
||||
return self.set_value(key, value)
|
||||
|
||||
Structure = override(Structure)
|
||||
__all__.append('Structure')
|
||||
|
||||
|
|
Loading…
Reference in a new issue