Skip to content

Commit fdcc82a

Browse files
committed
a few style fixes
1 parent e82d445 commit fdcc82a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

larray_editor/arraymodel.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
from __future__ import absolute_import, division, print_function
22

33
import numpy as np
4-
5-
from larray_editor.utils import (get_font, from_qvariant, to_qvariant, to_text_string,
6-
is_float, is_number, LinearGradient, SUPPORTED_FORMATS)
7-
84
from qtpy.QtCore import Qt, QModelIndex, QAbstractTableModel
95
from qtpy.QtGui import QColor
106
from qtpy.QtWidgets import QMessageBox
117

8+
from larray_editor.utils import (get_font, from_qvariant, to_qvariant, to_text_string,
9+
is_float, is_number, LinearGradient, SUPPORTED_FORMATS)
1210

1311
LARGE_SIZE = 5e5
1412
LARGE_NROWS = 1e5
1513
LARGE_COLS = 60
1614

15+
1716
class AbstractArrayModel(QAbstractTableModel):
1817
"""Labels Table Model.
19-
18+
2019
Parameters
2120
----------
2221
parent : QWidget, optional
2322
Parent Widget.
2423
data : array-like, optional
25-
Input data.
24+
Input data.
2625
readonly : bool, optional
2726
If True, data cannot be changed. False by default.
2827
font : QFont, optional

larray_editor/arraywidget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def __init__(self, parent, data=None, readonly=False, bg_value=None, bg_gradient
569569
self.view_data.setStyleSheet("""QTableView {
570570
selection-background-color: palette(highlight);
571571
selection-color: white;
572-
}""")
572+
}""")
573573

574574
# set external borders
575575
array_frame = QFrame(self)

0 commit comments

Comments
 (0)