From fe1595aef161df3414d5e37eb9acf9604149d8b7 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 11 Feb 2019 20:30:31 -0300 Subject: [PATCH] python: Implement TimelineElement.__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 08aef27..be2d9bf 100644 --- a/bindings/python/gi/overrides/GES.py +++ b/bindings/python/gi/overrides/GES.py @@ -61,6 +61,14 @@ __all__.append('TrackElement') class TimelineElement(GES.TimelineElement): + def __repr__(self): + return "%s [%s (%s) %s]" % ( + self.props.name, + Gst.TIME_ARGS(self.props.start), + Gst.TIME_ARGS(self.props.in_point), + Gst.TIME_ARGS(self.props.duration), + ) + def set_child_property(self, prop_name, prop_value): res, child, unused_pspec = self.lookup_child(prop_name) if not res: -- 2.7.4