diff --git a/win_venv/main.py b/win_venv/main.py index 9732fa2..f691372 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 analyzeFile(): + # 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: + analyze_btn = QPushButton('Analyze') + analyze_btn.clicked.connect(analyzeFile) + layout.addWidget(analyze_btn) view_btn = QPushButton('View') view_btn.clicked.connect(viewFile)