Skip to content

Commit

Permalink
remove empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bearney74 authored Mar 3, 2017
1 parent 8622ecc commit d426ee0
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions moviepy/video/io/sliders.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ def volume(x,y,z):

sliders = []

for i, properties in enumerate(sliders_properties):

for i, properties in enumerate(sliders_properties):
ax = plt.axes([0.1 , 0.95-0.9*(i+1)*slider_width,
0.8 , 0.8* slider_width])
if not isinstance(properties,dict):
Expand All @@ -52,31 +51,23 @@ def volume(x,y,z):

# CREATE THE CALLBACK FUNCTIONS

def on_changed(event) :

def on_changed(event) :
res = f(*(s.val for s in sliders))

if res is not None:

print( res )

def on_key_press(event):

if event.key is 'enter':

on_changed(event)

figure.canvas.mpl_connect('key_press_event', on_key_press)

# AUTOMATIC UPDATE ?

if not wait_for_validation:

for s in sliders :

s.on_changed(on_changed)


# DISPLAY THE SLIDERS

plt.show()

0 comments on commit d426ee0

Please sign in to comment.