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

Method initialize

pyxrf/gui_module/wnd_image_wizard.py:41–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 self.initialize()
40
41 def initialize(self):
42 self.setWindowTitle("PyXRF: Image Wizard")
43
44 self.setMinimumHeight(400)
45 self.setMinimumWidth(500)
46 self.resize(600, 600)
47
48 self.cb_select_all = QCheckBox("All")
49 self.cb_select_all.stateChanged.connect(self.cb_select_all_state_changed)
50
51 self.pb_add_elements = QPushButton("Add All Elements")
52 self.pb_add_elements.clicked.connect(self.pb_add_elements_clicked)
53
54 self._auto_update = True
55 self.cb_auto_update = QCheckBox("Auto")
56 self.cb_auto_update.setCheckState(Qt.Checked if self._auto_update else Qt.Unchecked)
57 self.cb_auto_update.stateChanged.connect(self.cb_auto_update_state_changed)
58
59 self.pb_update_plots = QPushButton("Update Plots")
60 self.pb_update_plots.setEnabled(not self._auto_update)
61 self.pb_update_plots.clicked.connect(self.pb_update_plots_clicked)
62
63 self._setup_table()
64
65 vbox = QVBoxLayout()
66
67 hbox = QHBoxLayout()
68 hbox.addWidget(self.cb_select_all)
69 hbox.addWidget(self.pb_add_elements)
70 hbox.addStretch(1)
71 hbox.addWidget(self.cb_auto_update)
72 hbox.addWidget(self.pb_update_plots)
73 vbox.addLayout(hbox)
74
75 hbox = QHBoxLayout()
76 hbox.addWidget(self.table)
77 vbox.addLayout(hbox)
78
79 self.setLayout(vbox)
80
81 self._set_tooltips()
82
83 def _setup_table(self):
84 self.table = QTableWidget()

Callers 1

__init__Method · 0.95

Calls 2

_setup_tableMethod · 0.95
_set_tooltipsMethod · 0.95

Tested by

no test coverage detected