traitsui.tests.test_handler module

class traitsui.tests.test_handler.PyfaceAction

Bases: traitsui.menu.Action

perform(event)

Performs the action.

Parameters:event (ActionEvent instance) – The event which triggered the action.
class traitsui.tests.test_handler.SampleHandler

Bases: traitsui.handler.Handler

action_handler()
apply(info)

Handles the Apply button being clicked.

info_action_handler(info)
revert(info)

Handles the Revert button being clicked.

show_help(info, control=None)

Shows the help associated with the view.

This method is called when the user clicks a Help button in a Traits user interface. The method calls the global help handler, which might be the default help handler, or might be a custom help handler. See traitsui.help for details about the setting the global help handler.

Parameters:
  • info (UIInfo object) – The UIInfo object associated with the view
  • control (UI control) – The control that invokes the help dialog box
class traitsui.tests.test_handler.SampleObject

Bases: traits.has_traits.HasTraits

action_handler()
info_action_handler(info)
object_action_handler()
class traitsui.tests.test_handler.TestHandler(methodName='runTest')

Bases: unittest.case.TestCase

test_close_handler()
test_help_handler()
test_perform_action_handler()
test_perform_click_handler()
test_perform_info_action_handler()
test_perform_object_handler()
test_perform_pyface_action()
test_perform_traitsui_action()
test_redo_handler()
test_revert_handler()
test_undo_handler()
class traitsui.tests.test_handler.TraitsUIAction

Bases: traitsui.menu.Action

perform()

Performs the action.

Parameters:event (ActionEvent instance) – The event which triggered the action.

Previous topic

traitsui.tests.test_controller module

Next topic

traitsui.tests.test_labels module

This Page