MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / __init__

Method __init__

pyxrf/gui_module/tab_wd_model.py:39–58  ·  view source on GitHub ↗
(self, *, gpc, gui_vars)

Source from the content-addressed store, hash-verified

37 signal_total_spectrum_fitting_completed = Signal(bool)
38
39 def __init__(self, *, gpc, gui_vars):
40 super().__init__()
41
42 self._fit_available = False
43 # Currently selected emission line.
44 self._selected_eline = ""
45
46 # Global processing classes
47 self.gpc = gpc
48 # Global GUI variables (used for control of GUI state)
49 self.gui_vars = gui_vars
50
51 # Reference to the main window. The main window will hold
52 # references to all non-modal windows that could be opened
53 # from multiple places in the program.
54 self.ref_main_window = self.gui_vars["ref_main_window"]
55
56 self.update_global_state.connect(self.ref_main_window.update_widget_state)
57
58 self.initialize()
59
60 def initialize(self):
61 v_spacing = global_gui_parameters["vertical_spacing_in_tabs"]

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.95

Tested by

no test coverage detected