Here are the examples of the python api bokeh.events.MouseWheel taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
View Source File : test_events.py
License : MIT License
Project Creator : rthorst
License : MIT License
Project Creator : rthorst
def test_mousewheel_callbacks():
plot = Plot()
payload = dict(sx=3, sy=-2, x=10, y=100, delta=5)
test_callback = EventCallback(['sx','sy','x','y', 'delta'])
plot.on_event(events.MouseWheel, test_callback)
assert test_callback.event_name == None
plot._trigger_event(events.MouseWheel(plot, **payload))
assert test_callback.event_name == events.MouseWheel.event_name
assert test_callback.payload == payload
def test_pan_callbacks():