Skip to content

Commit 92ba259

Browse files
committed
Swapped rows/cols in testlauncher + updated screenshot
1 parent e09299c commit 92ba259

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

qwt/tests/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def run_all_tests(wait=True):
8585
class TestLauncher(QW.QMainWindow):
8686
"""PythonQwt Test Launcher main window"""
8787

88-
ROWS = 5
88+
COLUMNS = 5
8989

9090
def __init__(self, parent=None):
9191
super(TestLauncher, self).__init__(parent)
@@ -136,8 +136,8 @@ def add_test(self, fname):
136136
if self.test_nb is None:
137137
self.test_nb = 0
138138
self.test_nb += 1
139-
row = (self.test_nb - 1) % self.ROWS
140-
column = (self.test_nb - 1) // self.ROWS
139+
column = (self.test_nb - 1) % self.COLUMNS
140+
row = (self.test_nb - 1) // self.COLUMNS
141141
bname = osp.basename(fname)
142142
button = QW.QToolButton(self)
143143
button.setToolButtonStyle(QC.Qt.ToolButtonTextUnderIcon)

qwt/tests/data/testlauncher.png

10.1 KB
Loading

0 commit comments

Comments
 (0)