Compare commits

...

2 Commits

Author SHA1 Message Date
42dd4f0cb4 rip represents 75%, encode 25% 2025-08-05 16:15:02 +02:00
c671962e92 pyrip icon added fro gui 2025-08-05 16:14:37 +02:00
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import logging import logging
import os
from PySide6.QtWidgets import ( from PySide6.QtWidgets import (
QMainWindow, QMainWindow,
QMessageBox, QMessageBox,
@ -23,6 +24,7 @@ from PySide6.QtCore import (
Slot, Slot,
QThread QThread
) )
from PySide6.QtGui import QPixmap, QIcon
from queue import Queue from queue import Queue
import time import time
@ -172,6 +174,11 @@ class MainWindow(QMainWindow):
self.setGeometry(100, 100, 900, 600) # Fensterbreite angepasst self.setGeometry(100, 100, 900, 600) # Fensterbreite angepasst
self.set_status("Ready...") self.set_status("Ready...")
app_path = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
pixmap = QPixmap(os.path.join(app_path, 'icon.xpm'))
icon = QIcon(pixmap)
self.setWindowIcon(icon)
self.__album_lines__ = [] self.__album_lines__ = []
main_widget = QWidget() main_widget = QWidget()
main_layout = QVBoxLayout(main_widget) main_layout = QVBoxLayout(main_widget)

View File

@ -32,7 +32,7 @@ class ThisQueueWorker(QueueWorker):
class RipQueueWorker(ThisQueueWorker): class RipQueueWorker(ThisQueueWorker):
def progress_adaption(self, value, track_num): def progress_adaption(self, value, track_num):
self.progress_updated.emit(50 * value, track_num - 1) self.progress_updated.emit(75 * value, track_num - 1)
def action(self, job_index): def action(self, job_index):
logger.info("action: Start ripping track %02d...", job_index + 1) logger.info("action: Start ripping track %02d...", job_index + 1)
@ -59,7 +59,7 @@ class RipQueueWorker(ThisQueueWorker):
class EncodeQueueWorker(ThisQueueWorker): class EncodeQueueWorker(ThisQueueWorker):
def progress_adaption(self, value, track_num): def progress_adaption(self, value, track_num):
self.progress_updated.emit(50 + 50 * value, track_num - 1) self.progress_updated.emit(75 + 25 * value, track_num - 1)
def action(self, job_index): def action(self, job_index):
logger.info("action: Start encoding track %02d...", job_index + 1) logger.info("action: Start encoding track %02d...", job_index + 1)