Added new infos.py file

This commit is contained in:
Dilan Boskan 2021-06-15 11:05:26 +02:00
parent 734d7e4e67
commit a046908550
3 changed files with 34 additions and 14 deletions

2
src/infos.py Normal file
View File

@ -0,0 +1,2 @@
CONVERTER_TITLE = "Conversion Section"
CONVERTER_TEXT = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."

View File

@ -1,25 +1,25 @@
[settingswindow]
size=@Size(940 600)
pos=@Point(1960 229)
size=@Size(940 483)
pos=@Point(133 193)
checkBox_gpuConversion=false
checkBox_tta=true
checkBox_modelFolder=true
checkBox_outputImage=true
checkBox_postProcess=true
checkBox_deepExtraction=true
checkBox_tta=false
checkBox_modelFolder=false
checkBox_outputImage=false
checkBox_postProcess=false
checkBox_deepExtraction=false
comboBox_instrumental=MGM-v5-2Band-32000-BETA1
comboBox_vocal=
comboBox_winSize=1024
doubleSpinBox_aggressiveness=0.1
comboBox_highEndProcess=Bypass
comboBox_presets=ALL
comboBox_winSize=352
doubleSpinBox_aggressiveness=-0.1
comboBox_highEndProcess=Mirroring
comboBox_presets=NONE
checkBox_notifiyOnFinish=false
checkBox_notifyUpdates=true
checkBox_settingsStartup=false
checkBox_disableAnimations=false
checkBox_disableShortcuts=false
checkBox_multithreading=false
comboBox_command=Aus
comboBox_command=Off
checkBox_autoSaveInstrumentals=true
checkBox_autoSaveVocals=true
@ -30,8 +30,8 @@ isMaximized=false
[user]
exportDirectory=C:/Users/boska/Desktop
language=de_DE
inputPaths=@Invalid()
language=en_US
inputPaths=C:/Users/boska/Desktop/BagsdreedBoys.png
inputsDirectory=C:/Users/boska/Desktop
presets=@Variant(\0\0\0\x7f\0\0\0\x18PySide::PyObjectWrapper\0\0\0\0\xc3\x80\x3X\x3\0\0\0\x41LLq\0}q\x1(X\xe\0\0\0\x61ggressivenessq\x2G?\xb9\x99\x99\x99\x99\x99\x9aX\xe\0\0\0\x64\x65\x65pExtractionq\x3\x88X\xe\0\0\0highEndProcessq\x4X\x6\0\0\0\x42ypassq\x5X\v\0\0\0modelFolderq\x6\x88X\v\0\0\0outputImageq\a\x88X\v\0\0\0postProcessq\b\x88X\x3\0\0\0ttaq\t\x88X\n\0\0\0windowSizeq\nM\0\x4u\x86q\v.), @Variant(\0\0\0\x7f\0\0\0\x18PySide::PyObjectWrapper\0\0\0\0\xc7\x80\x3X\x4\0\0\0NONEq\0}q\x1(X\xe\0\0\0\x61ggressivenessq\x2G\xbf\xb9\x99\x99\x99\x99\x99\x9aX\xe\0\0\0\x64\x65\x65pExtractionq\x3\x89X\xe\0\0\0highEndProcessq\x4X\t\0\0\0Mirroringq\x5X\v\0\0\0modelFolderq\x6\x89X\v\0\0\0outputImageq\a\x89X\v\0\0\0postProcessq\b\x89X\x3\0\0\0ttaq\t\x89X\n\0\0\0windowSizeq\nM`\x1u\x86q\v.)
presets_loadDir=C:/Users/boska/Desktop

View File

@ -1,5 +1,6 @@
# pylint: disable=no-name-in-module, import-error
# -GUI-
from logging import INFO
from PySide2 import QtWidgets
from PySide2 import QtCore
from PySide2 import QtGui
@ -9,6 +10,7 @@ from ..inference.lib.model_param_init import ModelParameters
from ..resources.resources_manager import ResourcePaths
from ..app import CustomApplication
from .. import constants as const
from .. import infos as INFOS
from .design import settingswindow_ui
# -Other-
import datetime as dt
@ -215,6 +217,20 @@ class SettingsWindow(QtWidgets.QWidget):
else:
self.ui.comboBox_presets.setCurrentIndex(0)
def show_info(self, title: str, text: str):
"""Show info to user with QMessageBox
Args:
title (str): Title of Message
text (str): Content of Message
"""
msg = QtWidgets.QMessageBox()
msg.setWindowTitle(title)
msg.setIcon(QtWidgets.QMessageBox.Icon.Information)
msg.setText(text)
msg.setStandardButtons(QtWidgets.QMessageBox.Ok)
msg.exec_()
# -Window Setup Methods-
def setup_window(self):
@ -339,6 +355,8 @@ class SettingsWindow(QtWidgets.QWidget):
self.ui.radioButton_lightTheme.clicked.connect(lambda: self.app.themeManager.load_theme('light'))
self.ui.radioButton_darkTheme.clicked.connect(lambda: self.app.themeManager.load_theme('dark'))
self.ui.info_conversion.clicked.connect(lambda: self.show_info(INFOS.CONVERTER_TITLE, INFOS.CONVERTER_TEXT))
bind_settings_changed()
def create_animation_objects():