From 914390a3cabac47f1c13b8b407b80fe692104d3e Mon Sep 17 00:00:00 2001 From: lancelot1969 Date: Wed, 10 Oct 2018 11:57:52 -0500 Subject: [PATCH] Update player_app.py --- solutions/apps/player_app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solutions/apps/player_app.py b/solutions/apps/player_app.py index 0b16dc3..4e9064d 100644 --- a/solutions/apps/player_app.py +++ b/solutions/apps/player_app.py @@ -67,14 +67,14 @@ def animate_update(): slider.value = year def animate(): - if button.label == '► Play': - button.label = '❚❚ Pause' + if button.label == '\u25B6 Play': + button.label = '\u23F8 Pause' curdoc().add_periodic_callback(animate_update, 1000) else: - button.label = '► Play' + button.label = '\u25B6 Play' curdoc().remove_periodic_callback(animate_update) -button = Button(label='► Play', width=60) +button = Button(label='\u25B6 Play', width=60) button.on_click(animate) # Combine the bokeh plot on plot.state with the widgets