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

Method _setup_wd_group

pyxrf/gui_module/tab_wd_load_data.py:90–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88 self._set_tooltips()
89
90 def _setup_wd_group(self):
91 self.group_wd = QGroupBox("Working Directory")
92
93 self.pb_set_wd = PushButtonMinimumWidth("..")
94 self.pb_set_wd.clicked.connect(self.pb_set_wd_clicked)
95
96 self.le_wd = LineEditReadOnly()
97
98 # Initial working directory. Set to the HOME directory for now
99 current_dir = os.path.expanduser(self.gpc.get_current_working_directory())
100 self.le_wd.setText(current_dir)
101
102 hbox = QHBoxLayout()
103 hbox.addWidget(self.pb_set_wd)
104 hbox.addWidget(self.le_wd)
105
106 self.group_wd.setLayout(hbox)
107
108 def _setup_load_group(self):
109 self.group_file = QGroupBox("Load Data")

Callers 1

initializeMethod · 0.95

Calls 4

LineEditReadOnlyClass · 0.85
setTextMethod · 0.80

Tested by

no test coverage detected