From e1a2b81a7ff03b7b95c532c18ff7917638b51174 Mon Sep 17 00:00:00 2001 From: Agata Date: Mon, 18 Jan 2021 16:13:52 +0100 Subject: [PATCH 1/2] added analize button --- win_venv/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/win_venv/main.py b/win_venv/main.py index c73fea9..7e90002 100644 --- a/win_venv/main.py +++ b/win_venv/main.py @@ -53,10 +53,19 @@ class LibraryTableButtons(QWidget): if ret == self.exPopup.Yes: os.remove(file) table.fillTable(type) + + def analizeFile(): + # todo: run script detect.py --source ../files/input/file.mp4 + pass layout = QHBoxLayout() layout.setContentsMargins(0,0,0,0) layout.setSpacing(0) + + if type == LIB_RAW: + analize_btn = QPushButton('Analize') + analize_btn.clicked.connect(analizeFile) + layout.addWidget(analize_btn) view_btn = QPushButton('View') view_btn.clicked.connect(viewFile) From a7a63366d9d6329ddfa8ddac23eb92ad6b0ad01d Mon Sep 17 00:00:00 2001 From: Agata Date: Mon, 18 Jan 2021 16:18:56 +0100 Subject: [PATCH 2/2] added analyze button --- win_venv/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win_venv/main.py b/win_venv/main.py index da8403b..f691372 100644 --- a/win_venv/main.py +++ b/win_venv/main.py @@ -54,7 +54,7 @@ class LibraryTableButtons(QWidget): os.remove(file) table.fillTable(type) - def analizeFile(): + def analyzeFile(): # todo: run script detect.py --source ../files/input/file.mp4 pass @@ -63,9 +63,9 @@ class LibraryTableButtons(QWidget): layout.setSpacing(0) if type == LIB_RAW: - analize_btn = QPushButton('Analize') - analize_btn.clicked.connect(analizeFile) - layout.addWidget(analize_btn) + analyze_btn = QPushButton('Analyze') + analyze_btn.clicked.connect(analyzeFile) + layout.addWidget(analyze_btn) view_btn = QPushButton('View') view_btn.clicked.connect(viewFile)