magmap.gui.vis_handler module¶
TraitsUI handler for Visualization class.
- class magmap.gui.vis_handler.StaleFlags(value)[source]¶
Bases:
EnumEnumerations for stale viewer states.
- IMAGE = 1¶
- ROI = 2¶
- class magmap.gui.vis_handler.ViewerTabs(value)[source]¶
Bases:
EnumEnumerations for viewer tabs.
- ATLAS_ED = 2¶
- MAYAVI = 3¶
- ROI_ED = 1¶
- class magmap.gui.vis_handler.VisHandler[source]¶
Bases:
HandlerCustom handler for Visualization object events.
- init(info)[source]¶
Handle events after controls have been generated but prior to their display.
- Parameters:
info (UIInfo) – TraitsUI UI info.
- Returns:
True.
- Return type:
- object__import_feedback_changed(info)[source]¶
Scroll to the bottom of the import feedback text display when the value is changed.
- Parameters:
info (UIInfo) – TraitsUI UI info.
- object__roi_feedback_changed(info)[source]¶
Scroll to the bottom of the ROI feedback text display when the value is changed.
- Parameters:
info (UIInfo) – TraitsUI UI info.
- object_mpl_fig_active_changed(info)[source]¶
Change keyboard focus depending on the shown tab.
TraitsUI does not hand Matplotlib figures keyboard focus except when the
Iteminitially requests focus inhas_focus, and even then the figure cannot regain focus once lost. As a workaround, store the active figure in a Trait and request focus on the figure from the underlying Qt widget.- Parameters:
info (UIInfo) – TraitsUI UI info.