python: Add a better asset __repr__

This commit is contained in:
Thibault Saunier 2019-07-08 19:25:32 -04:00
parent a5fa2c35aa
commit 2c08770cf0

View file

@ -86,6 +86,14 @@ class Container(GES.Container):
Container = override(Container)
__all__.append('Container')
class Asset(GES.Asset):
def __repr__(self):
return "%s(%s)" % (super().__repr__(), self.props.id)
Asset = override(Asset)
__all__.append('Asset')
try:
from gi.repository import Gst
Gst