overrides: implement Gst.Structure.__setitem__

This commit is contained in:
Thibault Saunier 2012-12-07 14:18:21 -03:00
parent 33d57f045a
commit 827a137189

View file

@ -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')