magmap.gui.vis_handler module

TraitsUI handler for Visualization class.

class magmap.gui.vis_handler.StaleFlags(value)[source]

Bases: Enum

Enumerations for stale viewer states.

IMAGE = 1
ROI = 2
class magmap.gui.vis_handler.ViewerTabs(value)[source]

Bases: Enum

Enumerations for viewer tabs.

ATLAS_ED = 2
MAYAVI = 3
ROI_ED = 1
class magmap.gui.vis_handler.VisHandler[source]

Bases: Handler

Custom handler for Visualization object events.

closed(info, is_ok)[source]

Shuts down the application when the GUI is closed.

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:

bool

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__profiles_reset_prefs_changed(info)[source]

Reset preferences.

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 Item initially requests focus in has_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.

object_select_controls_tab_changed(info)[source]

Select the given tab specified by Visualization.select_controls_tab.

Parameters:

info (UIInfo) – TraitsUI UI info.

static scroll_to_bottom(eds, ed_name)[source]

Scroll to the bottom of the given Qt editor.

Parameters:
  • eds (List) – Sequence of Qt editors.

  • ed_name (str) – Name of editor to scroll.