262-column-header #264
| @@ -53,7 +53,6 @@ class QFileReader(QtCore.QObject): | |||||||
|  |  | ||||||
|         status = QtWidgets.QDialog.Accepted |         status = QtWidgets.QDialog.Accepted | ||||||
|         for f in fname: |         for f in fname: | ||||||
|             print(f) |  | ||||||
|             f = Path(f) |             f = Path(f) | ||||||
|             dtype = self.guess_type(f) |             dtype = self.guess_type(f) | ||||||
|             if dtype in self.reader: |             if dtype in self.reader: | ||||||
| @@ -62,9 +61,6 @@ class QFileReader(QtCore.QObject): | |||||||
|                 raise ValueError(f'Unknown type for file {f}') |                 raise ValueError(f'Unknown type for file {f}') | ||||||
|  |  | ||||||
|             try: |             try: | ||||||
|                 print(status, QtWidgets.QDialog.DialogCode.Accepted) |  | ||||||
|                 print(r) |  | ||||||
|                 print(repr(self.reader['txt'].skip)) |  | ||||||
|                 # If QAsciiReader.skip = True it accepts automatically and returns None |                 # If QAsciiReader.skip = True it accepts automatically and returns None | ||||||
|                 if status == QtWidgets.QDialog.DialogCode.Rejected and isinstance(r, QAsciiReader) and self.reader['txt'].skip: |                 if status == QtWidgets.QDialog.DialogCode.Rejected and isinstance(r, QAsciiReader) and self.reader['txt'].skip: | ||||||
|                     break |                     break | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user