|
1 | | -from PySide6.QtGui import QColor, QContextMenuEvent, QCursor, QPalette, Qt |
2 | | -from PySide6.QtWidgets import QAbstractScrollArea, QCheckBox, QComboBox, QFileDialog, QHBoxLayout, QHeaderView, QLabel, \ |
3 | | - QMessageBox, QPushButton, QSpacerItem, QSpinBox, QTableWidget, QTableWidgetItem, QVBoxLayout, QWidget, QApplication, QDialog |
| 1 | +from os import path |
| 2 | + |
4 | 3 | from PySide6.QtCore import QModelIndex, QPoint, Slot |
5 | | -from ascii_dialog.selection_menu import SelectionMenu |
6 | | -from ascii_dialog.warning_label import WarningLabel |
| 4 | +from PySide6.QtGui import QColor, QCursor, Qt |
| 5 | +from PySide6.QtWidgets import ( |
| 6 | + QAbstractScrollArea, |
| 7 | + QApplication, |
| 8 | + QCheckBox, |
| 9 | + QComboBox, |
| 10 | + QDialog, |
| 11 | + QFileDialog, |
| 12 | + QHBoxLayout, |
| 13 | + QHeaderView, |
| 14 | + QLabel, |
| 15 | + QMessageBox, |
| 16 | + QPushButton, |
| 17 | + QSpacerItem, |
| 18 | + QSpinBox, |
| 19 | + QTableWidget, |
| 20 | + QTableWidgetItem, |
| 21 | + QVBoxLayout, |
| 22 | + QWidget, |
| 23 | +) |
| 24 | + |
| 25 | +from sasdata.ascii_reader_metadata import AsciiReaderMetadata |
| 26 | +from sasdata.dataset_types import DatasetType, dataset_types, one_dim, sesans, two_dim |
| 27 | +from sasdata.guess import guess_column_count, guess_columns, guess_starting_position |
| 28 | +from sasdata.temp_ascii_reader import AsciiReaderParams, load_data, split_line |
| 29 | + |
7 | 30 | from ascii_dialog.col_editor import ColEditor |
| 31 | +from ascii_dialog.constants import TABLE_MAX_ROWS |
8 | 32 | from ascii_dialog.row_status_widget import RowStatusWidget |
9 | | -from sasdata.guess import guess_column_count, guess_columns, guess_starting_position |
10 | | -from os import path |
11 | | -from sasdata.dataset_types import DatasetType, dataset_types, one_dim, two_dim, sesans |
12 | | -from sasdata.temp_ascii_reader import load_data, AsciiReaderParams, split_line |
| 33 | +from ascii_dialog.selection_menu import SelectionMenu |
| 34 | +from ascii_dialog.warning_label import WarningLabel |
13 | 35 | from metadata_filename_gui.metadata_filename_dialog import MetadataFilenameDialog |
14 | | -from metadata_filename_gui.metadata_tree_data import initial_metadata_dict |
15 | | -from sasdata.ascii_reader_metadata import AsciiReaderMetadata |
16 | | -from ascii_dialog.constants import TABLE_MAX_ROWS, NOFILE_TEXT |
17 | | -import re |
18 | 36 |
|
19 | 37 | dataset_dictionary = dict([(dataset.name, dataset) for dataset in [one_dim, two_dim, sesans]]) |
20 | 38 |
|
|
0 commit comments