From 2c08770cf03dd04bfb0c4bf33243389222c1243d Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 8 Jul 2019 19:25:32 -0400 Subject: [PATCH] python: Add a better asset __repr__ --- bindings/python/gi/overrides/GES.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/python/gi/overrides/GES.py b/bindings/python/gi/overrides/GES.py index 91e515f..fa09f7c 100644 --- a/bindings/python/gi/overrides/GES.py +++ b/bindings/python/gi/overrides/GES.py @@ -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 -- 2.7.4