Is it possible to have two different opperations on multiple button clicks

I am currently using the Bokeh environment to plot streaming data and also use buttons to control external peripherals. Is it possible on the same button to perform an operation on the first click and perform another operation on the second click?

Thanks.

–V

Never mind, I can use the toggle widget!!!

···

Sent from my iPhone

On Jan 16, 2017, at 6:01 PM, Vivek Dwivedi [email protected] wrote:

I am currently using the Bokeh environment to plot streaming data and also use buttons to control external peripherals. Is it possible on the same button to perform an operation on the first click and perform another operation on the second click?

Thanks.

–V

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5babad86-72c5-4801-b4aa-4a1c09b84d5c%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.