enthought / traitsui

TraitsUI: Traits-capable windowing framework
http://docs.enthought.com/traitsui
Other
297 stars 95 forks source link

Remove toolkit import from traitsui.api #1867

Closed corranwebster closed 2 years ago

corranwebster commented 2 years ago

Toolkit selection should be deferred as long as possible. We shouldn't be explicitly asking for it in the API. Code that needs it can get it from the toolkit module.

Early import breaks Mayavi test cases.

This should effectively revert https://github.com/enthought/traitsui/pull/1603.

corranwebster commented 2 years ago

Nope I don't think this is the problem.