box_select problem

Hello. How are you? I do not know if this goes here, but I hope you can help me. I have the following code

from bokeh.plotting import figure, output_file, show

output_file(“line.html”)
p = figure(plot_width=400, plot_height=400)
p.line([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], line_width=2)
show(p)

``

···

“taken on the bokeh page for the example”

I am using the box_select tool to select an area of ​​the graph. I need to calculate the distance on the x axis of the selected box.

example

distance = abs (x1-x2) x1 and x2 are the coordinates of the vertices of box_select.

how to capture the coordinates of box_select?

Thank you!!