neurotorchmz.gui.window#
Main module to initialize the Neurotorch GUI.
Classes
|
|
|
|
- class neurotorchmz.gui.window.ImageChangedEvent#
Bases:
TabUpdateEvent
- class neurotorchmz.gui.window.Neurotorch_GUI(session: Session)#
Bases:
object- _mpl_ini = False#
Internal variable which is set to True the first time a Neurotorch_GUI instance is created and the matplotlib backend is adjusted
- _on_closing()#
- _open_image_error_callback(ex: Exception)#
- ask_ram_warning(factor: float) bool#
- invoke_tab_about_update(tab: Tab, event: TabUpdateEvent) Task#
Add a UpdateEvent to the queue and start the update loop if not already running
- invoke_tab_update_event(event: TabUpdateEvent) Task#
Notify each tab about the given TabUpdateEvent
- set_img_diff_trigger(name: str, trigger_fn: Callable[[AxisImage, AxisImage], AxisImage] | None, invert: bool, cache: bool = False, clear: bool = True)#
- set_img_diff_xy_function(name: str, trigger_fn: Callable[[AxisImage, AxisImage], AxisImage] | None, cache: bool = False, clear: bool = True)#
- set_window_title(text: str = '')#
Updates the menu
- class neurotorchmz.gui.window.PeaksChangedEvent#
Bases:
TabUpdateEvent
- class neurotorchmz.gui.window.SignalChangedEvent#
Bases:
TabUpdateEvent
- class neurotorchmz.gui.window.Tab(session: Session, root: Tk, notebook: Notebook, _tab_name: str | None = None)#
Bases:
object- property active_image_object: ImageObject | None#
Convinience function for the currently active session image object
- init()#
Called by the GUI to notify the tab to generate its body
- invoke_update(event: TabUpdateEvent)#
Invoke an update on the tab
- notebook#
The current notebook frame
- root#
The tkinter root object
- session#
The current session object
- tab_name: str | None#
- update_tab(event: TabUpdateEvent)#
Called by the GUI to notify the tab, that it may need to update. It is the resposibility of the tab to check for the events
- property window: Neurotorch_GUI#
Convience function to get the window faster
- class neurotorchmz.gui.window.TabUpdateEvent#
Bases:
object
- class neurotorchmz.gui.window.UpdateRoiFinderDetectionResultEvent#
Bases:
TabUpdateEvent