Esempio n. 1
0
def test_player_click_button():
    """ test_player_click_button """
    view = nv.demo(gui=True)
    view._ipython_display_()
    view._repr_dict = REPR_DICT
    view.player._create_all_widgets()
    view.player.widget_export_image = view.player._make_button_export_image()
    button_iter = chain.from_iterable([
        view.player.widget_repr_control_buttons.children,
        view.player.widget_theme.children,
        view.player.widget_drag.children,
        [
            view.player._show_download_image(),
            view.player._make_button_url("", ""),
            view.player._make_button_center(),
            view.player._make_button_qtconsole(),
            view.player.widget_export_image.children[0].children[0],
            view.player.widget_repr_add.children[0],
        ],
        view.player.widget_drag.children,
        [
            w for w in view.player.widget_preference.children
            if isinstance(w, Button)
        ],
    ])
    for button in button_iter:
        click(button)
Esempio n. 2
0
def test_player_click_button():
    """ test_player_click_button """
    view = nv.demo(gui=True)
    view._ipython_display_()
    view._repr_dict = REPR_DICT
    view.player._create_all_widgets()
    view.player.widget_export_image = view.player._make_button_export_image()
    button_iter = chain.from_iterable([
        view.player.widget_repr_control_buttons.children,
        view.player.widget_theme.children,
        view.player.widget_drag.children,
        [view.player._show_download_image(),
         view.player._make_button_url("", ""),
         view.player._make_button_center(),
         view.player._make_button_qtconsole(),
         view.player.widget_export_image.children[0].children[0],
         view.player.widget_repr_add.children[0],
         ],
        view.player.widget_drag.children,
        [w for w in view.player.widget_preference.children if isinstance(w, Button)],
    ])
    for button in button_iter:
        click(button)