cff0a293372948a288d889eaac5a5dae25eaccf9,hyperspy/gui_ipywidgets/tools.py,,calibrate_ipy,#Any#,71

Before Change


        obj.span_selector_switch(on=True)
    apply.on_click(on_apply_clicked)

    box = ipywidgets.VBox([
        labelme_sandwich("New left", new_left, units),
        labelme_sandwich("New right", new_right, units),
        labelme_sandwich("Left", left, units),
        labelme_sandwich("Right", right, units),
        labelme_sandwich("Scale", scale, ""),  // No units, but padding
        labelme_sandwich("Offset", offset, units),
        help,
        ipywidgets.HBox((apply, close))
    ])

    def on_close_clicked(b):
        obj.span_selector_switch(False)

After Change


        ipywidgets.HBox([new_right, unitsl]),
        ipywidgets.HBox([left, unitsl]),
        ipywidgets.HBox([right, unitsl]),
        ipywidgets.HBox([offset, unitsl]),
        scale,
        units,
        help,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hyperspy/hyperspy
Commit Name: cff0a293372948a288d889eaac5a5dae25eaccf9
Time: 2017-04-11
Author: frandelapena@gmail.com
File Name: hyperspy/gui_ipywidgets/tools.py
Class Name:
Method Name: calibrate_ipy


Project Name: janfreyberg/superintendent
Commit Name: cb266bbe1ce215ec56cc54ee009ea3a2a055b6d8
Time: 2018-05-31
Author: janfreyberg@users.noreply.github.com
File Name: superintendent/controls.py
Class Name: Submitter
Method Name: _compose


Project Name: bokeh/bokeh
Commit Name: f9e59e511e5b578d05f1a18b3001d9bcb24c7617
Time: 2016-01-05
Author: bcollins@continuum.io
File Name: examples/app/crossfilter/main.py
Class Name: AppView
Method Name: update