opzioni avanzate globali funzionanti
This commit is contained in:
@@ -3,5 +3,6 @@ encoding//bananaSPLIT/UserInterface/compiledUI/advopt.py=utf-8
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/avanzatetitolo.py=utf-8
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/avanzatetitolo3.py=utf-8
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/mainwindow.py=utf-8
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/resources_rc.py=utf-8
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/selezout.py=utf-8
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/titolow.py=utf-8
|
||||
|
||||
@@ -43,6 +43,36 @@ class Ui_mainwin(object):
|
||||
self.wgt_mainPage1.setObjectName("wgt_mainPage1")
|
||||
self.gridLayout = QtWidgets.QGridLayout(self.wgt_mainPage1)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
|
||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||
self.btn_cartellasorg = QtWidgets.QPushButton(self.wgt_mainPage1)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.btn_cartellasorg.sizePolicy().hasHeightForWidth())
|
||||
self.btn_cartellasorg.setSizePolicy(sizePolicy)
|
||||
icon1 = QtGui.QIcon()
|
||||
icon1.addPixmap(QtGui.QPixmap(":/icons/icons8-add-folder-80.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_cartellasorg.setIcon(icon1)
|
||||
self.btn_cartellasorg.setIconSize(QtCore.QSize(30, 30))
|
||||
self.btn_cartellasorg.setFlat(True)
|
||||
self.btn_cartellasorg.setObjectName("btn_cartellasorg")
|
||||
self.verticalLayout_2.addWidget(self.btn_cartellasorg)
|
||||
self.btn_cartelladest = QtWidgets.QPushButton(self.wgt_mainPage1)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.btn_cartelladest.sizePolicy().hasHeightForWidth())
|
||||
self.btn_cartelladest.setSizePolicy(sizePolicy)
|
||||
icon2 = QtGui.QIcon()
|
||||
icon2.addPixmap(QtGui.QPixmap(":/icons/icons8-downloads-folder-80.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_cartelladest.setIcon(icon2)
|
||||
self.btn_cartelladest.setIconSize(QtCore.QSize(30, 30))
|
||||
self.btn_cartelladest.setFlat(True)
|
||||
self.btn_cartelladest.setObjectName("btn_cartelladest")
|
||||
self.verticalLayout_2.addWidget(self.btn_cartelladest)
|
||||
self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.lbl_cartellasorg = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
@@ -58,38 +88,6 @@ class Ui_mainwin(object):
|
||||
self.lbl_cartelladest.setObjectName("lbl_cartelladest")
|
||||
self.verticalLayout.addWidget(self.lbl_cartelladest)
|
||||
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
|
||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
|
||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||
self.btn_cartellasorg = QtWidgets.QPushButton(self.wgt_mainPage1)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.btn_cartellasorg.sizePolicy().hasHeightForWidth())
|
||||
self.btn_cartellasorg.setSizePolicy(sizePolicy)
|
||||
self.btn_cartellasorg.setText("")
|
||||
icon1 = QtGui.QIcon()
|
||||
icon1.addPixmap(QtGui.QPixmap(":/icons/icons8-add-folder-80.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_cartellasorg.setIcon(icon1)
|
||||
self.btn_cartellasorg.setIconSize(QtCore.QSize(30, 30))
|
||||
self.btn_cartellasorg.setFlat(True)
|
||||
self.btn_cartellasorg.setObjectName("btn_cartellasorg")
|
||||
self.verticalLayout_2.addWidget(self.btn_cartellasorg)
|
||||
self.btn_cartelladest = QtWidgets.QPushButton(self.wgt_mainPage1)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.btn_cartelladest.sizePolicy().hasHeightForWidth())
|
||||
self.btn_cartelladest.setSizePolicy(sizePolicy)
|
||||
self.btn_cartelladest.setText("")
|
||||
icon2 = QtGui.QIcon()
|
||||
icon2.addPixmap(QtGui.QPixmap(":/icons/icons8-downloads-folder-80.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.btn_cartelladest.setIcon(icon2)
|
||||
self.btn_cartelladest.setIconSize(QtCore.QSize(30, 30))
|
||||
self.btn_cartelladest.setFlat(True)
|
||||
self.btn_cartelladest.setObjectName("btn_cartelladest")
|
||||
self.verticalLayout_2.addWidget(self.btn_cartelladest)
|
||||
self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
|
||||
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||
self.lbl_sorg = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
@@ -99,11 +97,25 @@ class Ui_mainwin(object):
|
||||
self.lbl_dest.setObjectName("lbl_dest")
|
||||
self.verticalLayout_4.addWidget(self.lbl_dest)
|
||||
self.gridLayout.addLayout(self.verticalLayout_4, 0, 2, 1, 1)
|
||||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||||
self.gridLayout.addItem(spacerItem, 0, 3, 1, 1)
|
||||
self.line = QtWidgets.QFrame(self.wgt_mainPage1)
|
||||
self.line.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.line.setObjectName("line")
|
||||
self.gridLayout.addWidget(self.line, 1, 0, 1, 3)
|
||||
self.gridLayout.addWidget(self.line, 1, 0, 1, 4)
|
||||
self.label = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(11)
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.label.setFont(font)
|
||||
self.label.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.label.setObjectName("label")
|
||||
self.gridLayout.addWidget(self.label, 2, 0, 1, 4)
|
||||
self.lst_files = QtWidgets.QListWidget(self.wgt_mainPage1)
|
||||
self.lst_files.setObjectName("lst_files")
|
||||
self.gridLayout.addWidget(self.lst_files, 3, 0, 1, 4)
|
||||
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||
self.label_2 = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
@@ -145,19 +157,7 @@ class Ui_mainwin(object):
|
||||
self.btn_avanti.setFlat(False)
|
||||
self.btn_avanti.setObjectName("btn_avanti")
|
||||
self.horizontalLayout_2.addWidget(self.btn_avanti)
|
||||
self.gridLayout.addLayout(self.horizontalLayout_2, 4, 0, 1, 3)
|
||||
self.lst_files = QtWidgets.QListWidget(self.wgt_mainPage1)
|
||||
self.lst_files.setObjectName("lst_files")
|
||||
self.gridLayout.addWidget(self.lst_files, 3, 0, 1, 3)
|
||||
self.label = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(11)
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.label.setFont(font)
|
||||
self.label.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.label.setObjectName("label")
|
||||
self.gridLayout.addWidget(self.label, 2, 0, 1, 3)
|
||||
self.gridLayout.addLayout(self.horizontalLayout_2, 4, 0, 1, 4)
|
||||
self.wgt_main.addTab(self.wgt_mainPage1, "")
|
||||
self.verticalLayout_3.addWidget(self.wgt_main)
|
||||
self.line_2 = QtWidgets.QFrame(self.centralwidget)
|
||||
@@ -239,15 +239,17 @@ class Ui_mainwin(object):
|
||||
def retranslateUi(self, mainwin):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
mainwin.setWindowTitle(_translate("mainwin", "bananaSPLIT"))
|
||||
self.btn_cartellasorg.setText(_translate("mainwin", "-> "))
|
||||
self.btn_cartelladest.setText(_translate("mainwin", "-> "))
|
||||
self.lbl_cartellasorg.setText(_translate("mainwin", "Cartella sorgente"))
|
||||
self.lbl_cartelladest.setText(_translate("mainwin", "Cartella destinazione"))
|
||||
self.lbl_sorg.setText(_translate("mainwin", "..."))
|
||||
self.lbl_dest.setText(_translate("mainwin", "..."))
|
||||
self.label.setText(_translate("mainwin", "File disponibili per la conversione"))
|
||||
self.label_2.setText(_translate("mainwin", "Versione dei File"))
|
||||
self.rad_fileNew.setText(_translate("mainwin", "Nuova"))
|
||||
self.rad_fileOld.setText(_translate("mainwin", "Vecchia"))
|
||||
self.btn_avanti.setText(_translate("mainwin", "Avanti"))
|
||||
self.label.setText(_translate("mainwin", "File disponibili per la conversione"))
|
||||
self.wgt_main.setTabText(self.wgt_main.indexOf(self.wgt_mainPage1), _translate("mainwin", "SelezionaFile"))
|
||||
self.lbl_log.setText(_translate("mainwin", "qui ci va il log ma devo pensare a come farlo in modo non eccessivamente stupido"))
|
||||
self.bar_file.setTitle(_translate("mainwin", "File"))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -53,6 +53,65 @@
|
||||
<string>SelezionaFile</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="1">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetMinimumSize</enum>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_cartellasorg">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>-> </string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/icons8-add-folder-80.png</normaloff>:/icons/icons8-add-folder-80.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_cartelladest">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>-> </string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/icons8-downloads-folder-80.png</normaloff>:/icons/icons8-downloads-folder-80.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
@@ -81,65 +140,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetMinimumSize</enum>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_cartellasorg">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/icons8-add-folder-80.png</normaloff>:/icons/icons8-add-folder-80.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_cartelladest">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/icons8-downloads-folder-80.png</normaloff>:/icons/icons8-downloads-folder-80.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
@@ -158,14 +158,47 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<item row="0" column="3">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="4">
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="3">
|
||||
<item row="2" column="0" colspan="4">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>11</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>File disponibili per la conversione</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="4">
|
||||
<widget class="QListWidget" name="lst_files"/>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="4">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
@@ -251,26 +284,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="QListWidget" name="lst_files"/>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>11</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>File disponibili per la conversione</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
@@ -6,7 +6,7 @@ TODO LIST
|
||||
1- Aggiungere le icone ai tasti (giulia)
|
||||
|
||||
'''
|
||||
import sys
|
||||
import sys, copy, json
|
||||
import PyQt5.QtWidgets
|
||||
|
||||
from mainwindow import Ui_mainwin
|
||||
@@ -21,8 +21,7 @@ from libsplit import bananaSPLITTER
|
||||
|
||||
from PyQt5.QtCore import QDir
|
||||
from PyQt5.QtWidgets import QMessageBox
|
||||
from PyQt5.Qt import pyqtSlot
|
||||
import copy
|
||||
from PyQt5.Qt import pyqtSlot , pyqtSignal
|
||||
|
||||
class bananaMain(PyQt5.QtWidgets.QMainWindow):
|
||||
def __init__(self):
|
||||
@@ -67,6 +66,9 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
|
||||
self.ui.actionCarica_Preset.triggered.connect(self.openLoadPreset)
|
||||
self.ui.actionSalva_Preset.triggered.connect(self.openSavePreset)
|
||||
|
||||
#connetti segnali delle sottointerfacce
|
||||
self.advopt.update.connect(self.fillAllInterfaces)
|
||||
|
||||
#riempi pagine di interfaccia
|
||||
self.fillAllInterfaces()
|
||||
pass
|
||||
@@ -215,6 +217,8 @@ class bananaTitolo(PyQt5.QtWidgets.QWidget):
|
||||
if not found:
|
||||
self.titoloui.rad_altro.setChecked(True)
|
||||
self.titoloui.lin_altro.setText(self.conf.getParam('docStruct', 'customSep'))
|
||||
#finestra avanzate
|
||||
self.advtitolo.fillInterface()
|
||||
except:
|
||||
self.log.critical("Titolo: Configurazione non accettata")
|
||||
|
||||
@@ -471,24 +475,51 @@ class bananaSelezOut(PyQt5.QtWidgets.QWidget):
|
||||
pass
|
||||
|
||||
class bananaAdvOpt(PyQt5.QtWidgets.QWidget):
|
||||
|
||||
update = pyqtSignal()
|
||||
|
||||
def __init__(self, confloader=None, logger=None):
|
||||
PyQt5.QtWidgets.QWidget.__init__(self)
|
||||
self.advoptui = Ui_editconf()
|
||||
self.advoptui.setupUi(self)
|
||||
self.conf = confloader
|
||||
self.log = logger
|
||||
self.errmsg=None
|
||||
if self.conf is not None:
|
||||
self.fillInterface()
|
||||
self.advoptui.btn_ok.clicked.connect(self.applica)
|
||||
self.advoptui.btn_cancel.clicked.connect(self.rifiuta)
|
||||
self.fillInterface()
|
||||
pass
|
||||
|
||||
def fillInterface(self):
|
||||
try:
|
||||
pass
|
||||
self.advoptui.txt_confFile.setPlainText(json.dumps(self.conf.dump(),indent=2))
|
||||
except:
|
||||
self.log.critical("AdvancedOptions: Configurazione non accettata")
|
||||
pass
|
||||
|
||||
def applica(self):
|
||||
self.errmsg = QMessageBox()
|
||||
self.errmsg.setModal(True)
|
||||
try:
|
||||
self.conf.loads(self.advoptui.txt_confFile.toPlainText())
|
||||
self.log.info("AdvancedOptions: Parametri inseriti validi, configurazione accettata")
|
||||
self.errmsg.setIcon(QMessageBox.Information)
|
||||
self.errmsg.setText("Parametri inseriti validi, configurazione accettata")
|
||||
self.errmsg.show()
|
||||
self.update.emit()
|
||||
self.hide()
|
||||
except Exception as e:
|
||||
self.log.error(f"AdvancedOptions: Parametri inseliti non validi: {e}")
|
||||
self.errmsg.setIcon(QMessageBox.Critical)
|
||||
self.errmsg.setText(f"Errore nei parametri!\n{e}")
|
||||
self.errmsg.show()
|
||||
pass
|
||||
|
||||
def rifiuta(self):
|
||||
self.log.info(f"AdvancedOptions: Configurazione Rifiutata")
|
||||
self.hide()
|
||||
pass
|
||||
|
||||
class bananaSplitterInterface(PyQt5.QtWidgets.QWidget):
|
||||
|
||||
@@ -100,5 +100,9 @@ class bananaCONF(object):
|
||||
def dump(self):
|
||||
return self.settingsList[self.inUse]
|
||||
|
||||
def loads(self, conf):
|
||||
jconf = json.loads(conf)
|
||||
self.settingsList[self.inUse]=jconf
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user