Compare commits
No commits in common. "42dd4f0cb4f8a80792e8bfcc4ff000e5bdb01d3b" and "2313103493d704145a58e5365310d83dcb324d59" have entirely different histories.
42dd4f0cb4
...
2313103493
@ -1,5 +1,4 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
from PySide6.QtWidgets import (
|
from PySide6.QtWidgets import (
|
||||||
QMainWindow,
|
QMainWindow,
|
||||||
QMessageBox,
|
QMessageBox,
|
||||||
@ -24,7 +23,6 @@ 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
|
||||||
|
|
||||||
@ -174,11 +172,6 @@ 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)
|
||||||
|
@ -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(75 * value, track_num - 1)
|
self.progress_updated.emit(50 * 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(75 + 25 * value, track_num - 1)
|
self.progress_updated.emit(50 + 50 * 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user