#18: use better arrow

This commit is contained in:
Karl Kroening 2017-07-06 02:41:57 -06:00
parent 39466beb62
commit 2d512994ff

View File

@ -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)