split header line like data line in asciireader
This commit is contained in:
parent
6f1a84af10
commit
3c283ddac9
@ -132,7 +132,10 @@ class QAsciiReader(QtWidgets.QDialog, Ui_ascii_reader):
|
|||||||
self.ascii_table.setHorizontalHeaderLabels(map(str, range(1, self.ascii_table.columnCount() + 1)))
|
self.ascii_table.setHorizontalHeaderLabels(map(str, range(1, self.ascii_table.columnCount() + 1)))
|
||||||
if self.column_checkBox.isChecked() and self.line_spinBox.isEnabled():
|
if self.column_checkBox.isChecked() and self.line_spinBox.isEnabled():
|
||||||
header_line = self.reader.header[self.line_spinBox.value()-1]
|
header_line = self.reader.header[self.line_spinBox.value()-1]
|
||||||
self.ascii_table.setHorizontalHeaderLabels(header_line.split())
|
header_line = header_line.strip('\n\t\r, ')
|
||||||
|
header_line = re.sub(r'[\t ;,]+', ';', header_line)
|
||||||
|
|
||||||
|
self.ascii_table.setHorizontalHeaderLabels(header_line.split(';'))
|
||||||
|
|
||||||
@QtCore.pyqtSlot(int, name='on_staggered_checkBox_stateChanged')
|
@QtCore.pyqtSlot(int, name='on_staggered_checkBox_stateChanged')
|
||||||
def changestaggeredrange(self, state: int):
|
def changestaggeredrange(self, state: int):
|
||||||
|
Loading…
Reference in New Issue
Block a user