Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eager argument to watch #350

Closed
ahuang11 opened this issue Jul 30, 2019 · 0 comments · Fixed by #351
Closed

eager argument to watch #350

ahuang11 opened this issue Jul 30, 2019 · 0 comments · Fixed by #351

Comments

@ahuang11
Copy link
Contributor

def callback(event):
    select.disabled = True
    button.disabled = True
    time.sleep(5)
    select.disabled = False
    button.disabled = False

select = pn.widgets.Select(options=['Just Testing'])
button = pn.widgets.Button(name='Process!')
button.on_click(callback)

pn.Column(select, button)

philippjfr commented:
It's down to this: #323
I think we need to add an eager argument to the watch mechanism, which ensures that this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant