Skip to content

Pyface should not import ui_handler and set_ui_handler from traits.trait_notifiers #1259

@mdickinson

Description

@mdickinson

Pyface currently imports ui_handler and set_ui_handler directly from traits.trait_notifiers, in the qt and wx toolkit implementations (in the init.py modules).

Instead of this, it should import get_ui_handler (available since Traits 7.0.0) and set_ui_handler from traits.api, and use those.

For backwards compatibility, we should have a fallback path to reading ui_handler directly if get_ui_handler is not available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions