mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
python: Add a better asset __repr__
This commit is contained in:
parent
a5fa2c35aa
commit
2c08770cf0
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue