bokeh.events.MouseWheel.event_name

Here are the examples of the python api bokeh.events.MouseWheel.event_name taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Source File : test_events.py
License : MIT License
Project Creator : rthorst

def test_mousewheelevent_decode_json():
    event_values = dict(model_id='test-model-id', delta=-0.1, sx=3, sy=-2, x=10, y=100)
    event = events.Event.decode_json({'event_name':  events.MouseWheel.event_name,
                                      'event_values': event_values.copy()})
    assert event.delta == -0.1
    assert event.sx == 3
    assert event.sy == -2
    assert event.x == 10
    assert event.y == 100
    assert event._model_id == 'test-model-id'

def test_pinchevent_decode_json():