From e1a2b81a7ff03b7b95c532c18ff7917638b51174 Mon Sep 17 00:00:00 2001 From: Agata Date: Mon, 18 Jan 2021 16:13:52 +0100 Subject: [PATCH] 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)