python: Implement TimelineElement.__repr__

This commit is contained in:
Thibault Saunier 2019-02-11 20:30:31 -03:00 committed by Thibault Saunier
parent 694e39186b
commit fe1595aef1

View file

@ -61,6 +61,14 @@ __all__.append('TrackElement')
class TimelineElement(GES.TimelineElement): 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): def set_child_property(self, prop_name, prop_value):
res, child, unused_pspec = self.lookup_child(prop_name) res, child, unused_pspec = self.lookup_child(prop_name)
if not res: if not res: