If the EngineManagerStandaloneUI is first initialised to have no engine and then have the first engine added later, engine_name(DEnum) does not fire a _engine_name_changed event and the panels do not synchronise to use the new engine. With the reference to the manager's attribute assigned instead, this bug is fixed.
from simphony.visualisation import mayavi_tools
gui = mayavi_tools.EngineManagerStandaloneUI() # initialised to be empty
gui.add_engine(...) # the panels won't know about this when the first engine is added
If the
EngineManagerStandaloneUI
is first initialised to have no engine and then have the first engine added later,engine_name
(DEnum
) does not fire a_engine_name_changed
event and the panels do not synchronise to use the new engine. With the reference to the manager's attribute assigned instead, this bug is fixed.