sya

split youtube audio tracks, with an optional pyqt gui
git clone git://src.gearsix.net/sya
Log | Files | Refs | Atom | README

commit 8559aad47288a0aa5e38bffc051007d4214fee64
parent 74cf1fa80e912bd217b7a9e423b16a3c3bf7ff69
Author: gearsix <gearsix@tuta.io>
Date:   Thu,  9 Sep 2021 23:25:30 +0100

changed tracklist filepicker icon to file.png

Diffstat:
MREADME.txt | 4++--
Afile.png | 0
Msya-pyqt.py | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.txt b/README.txt @@ -73,11 +73,11 @@ BUILDING To do this 'pyinstaller' seems most convenient (installed via "pip install pyinstaller"): - pyinstaller sya-pyqt.py -F --windowed --add-data "folder.png:." + pyinstaller sya-pyqt.py -F --windowed --add-data "folder.png:file.png:." On Windows, you'll need to use the following: - pyinstaller sya-pyqt.py -F --windowed --add-data "folder.png;." + pyinstaller sya-pyqt.py -F --windowed --add-data "folder.png;file.png;." This process also works to create binaries for the terminal version of the tool (sya.py). When building that version, the "--windowed" diff --git a/file.png b/file.png Binary files differ. diff --git a/sya-pyqt.py b/sya-pyqt.py @@ -125,7 +125,7 @@ class SyaGui(qtwidg.QMainWindow): logs.setLayout(layout) return logs - def _init_filepicker(self, widget, labelText, filepickerFn, default=None): + def _init_filepicker(self, widget, labelText, filepickerFn, default=None, icon='folder'): layout = qtwidg.QHBoxLayout() # label label = qtwidg.QLabel(labelText, widget) @@ -136,7 +136,7 @@ class SyaGui(qtwidg.QMainWindow): self._edits[labelText].setText(default) layout.addWidget(self._edits[labelText]) # filepicker btn - button_logo = qtgui.QIcon(resource_path('folder.png')) + button_logo = qtgui.QIcon(resource_path('{}.png'.format(icon))) button = qtwidg.QPushButton(button_logo, '', widget) button.clicked.connect(filepickerFn) layout.addWidget(button)