def _open_logfiles_fired(self): dlg = FileDialog() dlg.action = 'open files' if dlg.open() == OK: paths = dlg.paths for filePath in paths: self.log_files.append(filePath)
def _getFilePath(self, defFileName): dlg = FileDialog() dlg.action = 'save as' dlg.default_filename = defFileName if dlg.open() == OK: return dlg.path else: return None
def _open_esffiles_fired(self): dlg = FileDialog() dlg.wildcard = "*.esf" dlg.action = 'open files' if dlg.open() == OK: paths = dlg.paths for filePath in paths: self.esf_files.append(filePath)
def _exportCSV_changed(self): dlg = FileDialog() dlg.action = 'save as' dlg.default_filename = self.groupAddress.replace("/", "-") + '_' + self.name + '.csv' if dlg.open() != OK: return if self._exportCSV_hock != None: self._exportCSV_hock(self, dlg.path)