modifica selezione cartelle selezione sorgente e destinazione

This commit is contained in:
2019-12-18 21:14:44 +01:00
parent b2d3a03da8
commit 21f869ccd0
2 changed files with 11 additions and 12 deletions

View File

@@ -69,18 +69,12 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
self.logger.debug("Tab Precedente")
pass
def openFileDialog(self, name, path):
return PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,name)
def openLoadPreset(self):
self.logger.debug("Apri Carica Preset")
self.logger.debug(str(self.conf.getParam('paths')))
pass
def openSavePreset(self):
self.logger.debug("Apri Salva Preset")
self.conf.setParam(val="pippo",keys=('paths','INworkPath',))
self.logger.debug(str(self.conf.getParam('paths')))
pass
def openAdvOpt(self):
@@ -92,15 +86,22 @@ class bananaMain(PyQt5.QtWidgets.QMainWindow):
pass
def selezSorg(self):
rv = self.openFileDialog("Seleziona Cartella Sorgente", self.conf.getParam(""))
self.logger.debug("Selezionata Cartella Sorgente: {}".format(rv))
rv = PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,"Seleziona Cartella Sorgente",self.conf.getParam('paths','INworkPath'))
if rv is not "":
self.conf.setParam(keys=('paths','INworkPath',), val=rv)
self.logger.debug("Selezionata Cartella Sorgente: {}".format(rv))
pass
def selezDest(self):
rv = self.openFileDialog("Seleziona Cartella Destinazione", self.conf.getParam(""))
self.logger.debug("Selezionata Cartella Destinazione: {}".format(rv))
rv = PyQt5.QtWidgets.QFileDialog.getExistingDirectory(self,"Seleziona Cartella Destinazione",self.conf.getParam('paths','OUTworkPath'))
if rv is not "":
self.conf.setParam(keys=('paths','OUTworkPath',), val=rv)
self.logger.debug("Selezionata Cartella Destinazione: {}".format(rv))
pass
def openFileDialog(self, name, path):
self.log.debug("Apro in directory: {}".format(path))
return
#############################################################
####################### INTERFACES ##########################

View File

@@ -4,8 +4,6 @@ Created on 2 nov 2019
@author: Emanuele Trabattoni
'''
import json,os,glob,copy
from xml.dom import INUSE_ATTRIBUTE_ERR
from builtins import True
class bananaCONF(object):
'''