traitsui.tests.test_splitter_prefs_restored module

Test the storing/restoration of split group state.

class traitsui.tests.test_splitter_prefs_restored.TmpClass

Bases: traitsui.handler.Handler

collapse_left(ui_info)

Collapse the split to the left.

collapse_right(ui_info)

Collapse the split to the right.

init(ui_info)

Initializes the controls of a user interface.

This method is called after all user interface elements have been created, but before the user interface is displayed. Override this method to customize the user interface before it is displayed.

Parameters:info (UIInfo object) – The UIInfo object associated with the view
Returns:initialized – A Boolean, indicating whether the user interface was successfully initialized. A True value indicates that the UI can be displayed; a False value indicates that the display operation should be cancelled. The default implementation returns True without taking any other action.
Return type:bool
reset_prefs(ui_info)

Reset the split to be equally wide.

restore_prefs(ui_info)

Apply the last saved ui preferences.

save_prefs(ui_info)

Save the current ui preferences.

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

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

traitsui.tests.test_splitter_prefs_restored.test_splitter_prefs_are_restored()

Previous topic

traitsui.tests.test_shadow_group module

Next topic

traitsui.tests.test_toolkit module

This Page