traitsui.tests.editors.test_liststr_editor_selection module

Test case for bug (wx, Mac OS X)

A ListStrEditor was not checking for valid item indexes under Wx. This was most noticeable when the selected_index was set in the editor factory.

class traitsui.tests.editors.test_liststr_editor_selection.ListStrEditorWithSelectedIndex

Bases: traits.has_traits.HasTraits

traitsui.tests.editors.test_liststr_editor_selection.get_selected(control)

Returns a list of the indices of all currently selected list items.

traitsui.tests.editors.test_liststr_editor_selection.skip_if_not_qt4(item, *, backend_name='qt4')

Decorator that skip tests if the backend is not the desired one.

traitsui.tests.editors.test_liststr_editor_selection.skip_if_not_wx(item, *, backend_name='wx')

Decorator that skip tests if the backend is not the desired one.

traitsui.tests.editors.test_liststr_editor_selection.test_selection_listener_disconnected()

Check that selection listeners get correctly disconnected

traitsui.tests.editors.test_liststr_editor_selection.test_wx_list_str_multi_selected_index()
traitsui.tests.editors.test_liststr_editor_selection.test_wx_list_str_selected_index()