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)#
_update_loop(task: Task, **kwargs)#

Process the update queue as long as items are contained

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

launch(edition: Edition = Edition.NEUROTORCH)#
menu_debug_enable_debugging_click()#
menu_debug_load_peaks_click()#
menu_debug_save_peaks_click()#
menu_debug_test()#
menu_export_click(what: Literal['img', 'img_diff', 'img_only_signal', 'img_without_signal'])#
menu_file_close_click()#
menu_file_open_click(noisy: bool = False)#
menu_image_clear_cache_click()#
menu_image_diable_all_filters_click()#
menu_neurotorch_about_click()#
menu_neurotorch_logs_click()#
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 = '')#
update_menu()#

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