From e36e6a96d38a4e9034fbc59aebfe194f92209273 Mon Sep 17 00:00:00 2001 From: nyanpasu64 Date: Wed, 6 Mar 2019 22:25:42 -0800 Subject: [PATCH] Cleanup gui/__init__.py --- corrscope/gui/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/corrscope/gui/__init__.py b/corrscope/gui/__init__.py index 736e62b..a12d5b8 100644 --- a/corrscope/gui/__init__.py +++ b/corrscope/gui/__init__.py @@ -516,7 +516,6 @@ class CorrProgressDialog(qw.QProgressDialog): # self.setValue is called by CorrScope, on the first frame. -# *arg_types: type def run_on_ui_thread( bound_slot: MethodType, types: Tuple[type, ...] ) -> Callable[..., None]: @@ -718,7 +717,10 @@ class ChannelTableView(qw.QTableView): col = model.idx_of_key["wav_path"] + # Insert N empty rows into model (mutates cfg.channels). model.insertRows(begin_row, count_rows) + + # Fill N empty rows with wav_path. for row, wav_path in enumerate(wavs, begin_row): index = model.index(row, col) model.setData(index, wav_path) @@ -784,6 +786,9 @@ def plus_minus_one(value: str) -> int: return -1 +nope = qc.QVariant() + + class ChannelModel(qc.QAbstractTableModel): """ Design based off https://doc.qt.io/qt-5/model-view-programming.html#a-read-only-example-model and @@ -994,9 +999,6 @@ class ChannelModel(qc.QAbstractTableModel): ) -nope = qc.QVariant() - - class DownloadFFmpegActivity: title = "Missing FFmpeg"