diff --git a/SPEx/scripts/compileUI.py b/SPEx/scripts/compileUI.py index 0e1ad2b..5f4c468 100644 --- a/SPEx/scripts/compileUI.py +++ b/SPEx/scripts/compileUI.py @@ -6,32 +6,32 @@ Created on 24 nov 2019 import os, glob, subprocess def updateInterfaces(): - uifiles = glob.glob("*.ui") - for f in uifiles: - command = r"pyuic5.exe "+f - print(command) - rv = subprocess.run(command, capture_output=True) - if rv.returncode == 0: - fp = open(r".\\CompiledUI\\"+f.replace("ui","py"), 'w') - fp.write(str(rv.stdout, encoding='utf-8').replace('\r', '')) - fp.close() - else: - print("Command Failure") + uifiles = glob.glob("*.ui") + for f in uifiles: + command = r"pyuic5.exe "+f + print(command) + rv = subprocess.run(command, capture_output=True) + if rv.returncode == 0: + fp = open(r".\\CompiledUI\\"+f.replace("ui","py"), 'w') + fp.write(str(rv.stdout, encoding='utf-8').replace('\r', '')) + fp.close() + else: + print("Command Failure") def updateResources(): - command = r'pyrcc5.exe '+'.\\resources\\resources.qrc' - print (command) - rv = subprocess.run(command, capture_output=True) - if rv.returncode == 0: - fp = open(r".\\compiledUI\\resources_rc.py", 'w') - fp.write(str(rv.stdout, encoding='utf-8').replace('\r', '')) - fp.close() - else: - print("Command Failure") + command = r'pyrcc5.exe '+'.\\resources\\resources.qrc' + print (command) + rv = subprocess.run(command, capture_output=True) + if rv.returncode == 0: + fp = open(r".\\compiledUI\\resources_rc.py", 'w') + fp.write(str(rv.stdout, encoding='utf-8').replace('\r', '')) + fp.close() + else: + print("Command Failure") if __name__ == '__main__': - print(os.getcwd()) - os.chdir(r"..\spex\userInterface") - updateInterfaces() - updateResources() - pass \ No newline at end of file + print(os.getcwd()) + os.chdir(r"..\spex\userInterface") + updateInterfaces() + updateResources() + pass \ No newline at end of file diff --git a/SPEx/scripts/convert.py b/SPEx/scripts/convert.py index 14c95d0..41b9e68 100644 --- a/SPEx/scripts/convert.py +++ b/SPEx/scripts/convert.py @@ -6,16 +6,16 @@ Created on 30 mar 2020 import glob, docx2txt if __name__ == '__main__': - fList = glob.iglob("../TestFiles/File nuovo formato/*.docx") - for f in fList: - #os.remove(f.replace('.docx', '.txt')) - print(f) - try: - txt=docx2txt.process(f) - with open(f.replace('.docx', '.txt'), 'wb') as fp: - fp.write(txt.encode('ansi')) - fp.close() - except Exception as e: - print(e) - pass - pass \ No newline at end of file + fList = glob.iglob("../TestFiles/File nuovo formato/*.docx") + for f in fList: + #os.remove(f.replace('.docx', '.txt')) + print(f) + try: + txt=docx2txt.process(f) + with open(f.replace('.docx', '.txt'), 'wb') as fp: + fp.write(txt.encode('ansi')) + fp.close() + except Exception as e: + print(e) + pass + pass \ No newline at end of file diff --git a/SPEx/scripts/libtestmain.py b/SPEx/scripts/libtestmain.py index 845a00e..7069c6d 100644 --- a/SPEx/scripts/libtestmain.py +++ b/SPEx/scripts/libtestmain.py @@ -8,13 +8,13 @@ from libsplit import bananaSPLITTER from libfancylogger import fancyLogger if __name__ == "__main__": - logger = fancyLogger(filepath=r"./conf/loggerconf.json",fileLog=False) - fp = open('./conf/conftest.json', 'r') - splitter = bananaSPLITTER(fileParams=json.load(fp), logger=logger) - fp.close() - splitter.run() + logger = fancyLogger(filepath=r"./conf/loggerconf.json",fileLog=False) + fp = open('./conf/conftest.json', 'r') + splitter = bananaSPLITTER(fileParams=json.load(fp), logger=logger) + fp.close() + splitter.run() - logger.info("\n"+"="*50+"\n\tFINITO!!!\n"+"="*50) + logger.info("\n"+"="*50+"\n\tFINITO!!!\n"+"="*50) diff --git a/SPEx/scripts/updateLanguages.py b/SPEx/scripts/updateLanguages.py index 84600cd..68e9151 100644 --- a/SPEx/scripts/updateLanguages.py +++ b/SPEx/scripts/updateLanguages.py @@ -8,13 +8,13 @@ import subprocess langs = ["en"] if __name__ == '__main__': - uifiles = glob.glob("..\\*\\*.ui", recursive=True) - pyfiles = ['..\\SPEx\\guimain.py','..\\SPEx\\libbananasplit\\libsplit.py','..\\SPEx\\libbananasplit\\libconfload.py'] - for l in langs: - for ui in uifiles: - uio = "..\\SPEx\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ui)[1]))[0]+f"_{l}.ts" - subprocess.run(f'lupdate.exe {ui} -ts {uio}') - for py in pyfiles: - pyo = "..\\SPEx\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(py)[1]))[0]+f"_{l}.ts" - print(subprocess.run(f'pylupdate5.exe {py} -ts {pyo}')) - pass \ No newline at end of file + uifiles = glob.glob("..\\*\\*.ui", recursive=True) + pyfiles = ['..\\SPEx\\guimain.py','..\\SPEx\\libbananasplit\\libsplit.py','..\\SPEx\\libbananasplit\\libconfload.py'] + for l in langs: + for ui in uifiles: + uio = "..\\SPEx\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ui)[1]))[0]+f"_{l}.ts" + subprocess.run(f'lupdate.exe {ui} -ts {uio}') + for py in pyfiles: + pyo = "..\\SPEx\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(py)[1]))[0]+f"_{l}.ts" + print(subprocess.run(f'pylupdate5.exe {py} -ts {pyo}')) + pass \ No newline at end of file diff --git a/SPEx/spex/UserInterface/compiledUI/about.py b/SPEx/spex/UserInterface/compiledUI/about.py index 3e39f9b..3a1459a 100644 --- a/SPEx/spex/UserInterface/compiledUI/about.py +++ b/SPEx/spex/UserInterface/compiledUI/about.py @@ -2,9 +2,11 @@ # Form implementation generated from reading ui file 'about.ui' # -# Created by: PyQt5 UI code generator 5.12.1 +# Created by: PyQt5 UI code generator 5.15.1 # -# WARNING! All changes made in this file will be lost! +# WARNING: Any manual changes made to this file will be lost when pyuic5 is +# run again. Do not edit this file unless you know what you are doing. + from PyQt5 import QtCore, QtGui, QtWidgets @@ -61,6 +63,4 @@ class Ui_about(object): "
SPEx non e\' soggetto ad alcun tipo di licenza e viene distribuito senza alcuna garanzia.
Essendo un progetto "del tempo libero", bug e proposte di espansione verranno sicuramente presi in considerazione, anche se le tempistiche potrebbero variare.
Contatti:
12parsec.software@gmail.com
Download:
https://drive.google.com/open?id=10zUm7uHk9st36PVotMwh9wqOeXU3xrr8