mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-04-06 04:15:44 +08:00
#18: use better arrow
This commit is contained in:
parent
39466beb62
commit
2d512994ff
@ -14,6 +14,9 @@ from ffmpeg.nodes import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
_RIGHT_ARROW = '\u2192'
|
||||||
|
|
||||||
|
|
||||||
def _get_node_color(node):
|
def _get_node_color(node):
|
||||||
if isinstance(node, InputNode):
|
if isinstance(node, InputNode):
|
||||||
color = '#99cc00'
|
color = '#99cc00'
|
||||||
@ -70,7 +73,7 @@ def view(*streams, **kwargs):
|
|||||||
if down_label is None:
|
if down_label is None:
|
||||||
down_label = ''
|
down_label = ''
|
||||||
if up_label != '' and down_label != '':
|
if up_label != '' and down_label != '':
|
||||||
middle = ' -> '
|
middle = ' {} '.format(_RIGHT_ARROW)
|
||||||
else:
|
else:
|
||||||
middle = ''
|
middle = ''
|
||||||
kwargs['label'] = '{} {} {}'.format(up_label, middle, down_label)
|
kwargs['label'] = '{} {} {}'.format(up_label, middle, down_label)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user