automatic reformatting of the code
This commit is contained in:
parent
30503185e4
commit
81ce161744
@ -266,8 +266,7 @@ class MainWindow(QMainWindow):
|
|||||||
action = self.sender()
|
action = self.sender()
|
||||||
if isinstance(action, QAction):
|
if isinstance(action, QAction):
|
||||||
if action.data() is None:
|
if action.data() is None:
|
||||||
filt = """Supported event formats (*.mat *.qml *.xml
|
filt = """Supported event formats (*.mat *.qml *.xml *.kor *.evt)"""
|
||||||
*.kor *.evt)"""
|
|
||||||
caption = 'Select event to open'
|
caption = 'Select event to open'
|
||||||
self.fname = QFileDialog().getOpenFileName(self,
|
self.fname = QFileDialog().getOpenFileName(self,
|
||||||
caption=caption,
|
caption=caption,
|
||||||
@ -295,9 +294,11 @@ class MainWindow(QMainWindow):
|
|||||||
else:
|
else:
|
||||||
if self.dataStructure:
|
if self.dataStructure:
|
||||||
searchPath = self.dataStructure.expandDataPath()
|
searchPath = self.dataStructure.expandDataPath()
|
||||||
self.fnames = QFileDialog.getOpenFileNames(self,
|
fnames, = QFileDialog.getOpenFileNames(self,
|
||||||
"Select waveform files:",
|
"Select waveform files:",
|
||||||
dir=searchPath)
|
dir=searchPath)
|
||||||
|
self.fnames = fnames
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise ValueError('dataStructure not specified')
|
raise ValueError('dataStructure not specified')
|
||||||
return self.fnames
|
return self.fnames
|
||||||
|
Loading…
Reference in New Issue
Block a user