Compare commits
45 Commits
master
...
9425262e7a
| Author | SHA1 | Date | |
|---|---|---|---|
| 9425262e7a | |||
| 94f289a6e2 | |||
| 1880d5bb7e | |||
| 8eedd2ac4b | |||
| 9a7477a23e | |||
| 08240b63d8 | |||
| 2a0695f78c | |||
| 59f3e2d6b3 | |||
|
|
da0eb61e2d | ||
| ff9f85ad0b | |||
| fd8ea3edc9 | |||
| 9e62197eba | |||
| e3934c06d1 | |||
|
|
16b4b307a9 | ||
|
|
4d63c83278 | ||
|
|
23bcc4de1e | ||
|
|
207651bd5d | ||
| 07810fe569 | |||
| f9551b34aa | |||
| 13b2d72be1 | |||
| b7af353ab8 | |||
| 3f5ef6c103 | |||
| 21e7a29c33 | |||
| d01afc2ab3 | |||
| 9537530a34 | |||
| c401518db5 | |||
| 22413c3fb2 | |||
| bfbd0e8c79 | |||
| af880df5b3 | |||
|
|
3624d21e90 | ||
|
|
3c1aad543e | ||
|
|
c5ee729683 | ||
| 56a509a5e6 | |||
| 84a38d0cb3 | |||
| 8ec7e5e835 | |||
| 4f05729782 | |||
| d7321a5041 | |||
| a29aa4da91 | |||
| 170959e529 | |||
| 3fa74f6ed9 | |||
| 2f1236449a | |||
|
|
f43ed84d72 | ||
| 4057b31203 | |||
|
|
0ddd8af3bc | ||
| eec006f6c5 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
/.DS_Store
|
||||
/.project
|
||||
/.pydevproject
|
||||
bananaSPLIT/build
|
||||
bananaSPLIT.exe.spec
|
||||
|
||||
4
.settings/org.eclipse.core.resources.prefs
Normal file
4
.settings/org.eclipse.core.resources.prefs
Normal file
@@ -0,0 +1,4 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/avanzatetitolo.py=utf-8
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/mainwindow.py=utf-8
|
||||
encoding//bananaSPLIT/UserInterface/compiledUI/titolow.py=utf-8
|
||||
2
.settings/org.eclipse.ltk.core.refactoring.prefs
Normal file
2
.settings/org.eclipse.ltk.core.refactoring.prefs
Normal file
@@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
|
||||
BIN
WinBuild/dist/bananaSPLIT.exe
vendored
BIN
WinBuild/dist/bananaSPLIT.exe
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 79 KiB |
172
bananaSPLIT/UserInterface/avanzatetitolo.ui
Normal file
172
bananaSPLIT/UserInterface/avanzatetitolo.ui
Normal file
@@ -0,0 +1,172 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>advtitolo</class>
|
||||
<widget class="QWidget" name="advtitolo">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>480</width>
|
||||
<height>400</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="3" column="2">
|
||||
<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="0" column="0" colspan="2">
|
||||
<widget class="QLabel" name="lbl_titoloschermata">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>11</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Modifica ordine elementi nome file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spn_data">
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>3</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spn_titolo">
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>3</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spn_numero">
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>3</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="QLabel" name="lbl_istruzioni">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Indica la posizione dell'elemento nel nome del file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_data">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Data</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_titolo">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Titolo</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_numero">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Numero</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="2">
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="text">
|
||||
<string>Avanti</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QPushButton" name="pushButton_2">
|
||||
<property name="text">
|
||||
<string>Indietro</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
19
bananaSPLIT/UserInterface/compileUI.py
Normal file
19
bananaSPLIT/UserInterface/compileUI.py
Normal file
@@ -0,0 +1,19 @@
|
||||
'''
|
||||
Created on 24 nov 2019
|
||||
|
||||
@author: Emanuele Trabattoni
|
||||
'''
|
||||
import os, glob, subprocess
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(os.getcwd())
|
||||
uifiles = glob.glob("*.ui")
|
||||
for f in uifiles:
|
||||
command = r"C:\Program Files\Python37\Scripts\pyuic5.exe "+f
|
||||
print(command)
|
||||
rv = subprocess.run(command, capture_output=True)
|
||||
fp = open(r".\compiledUI\\"+f.replace("ui","py"), 'w')
|
||||
fp.write(str(rv.stdout, encoding='ascii').replace('\r', ''))
|
||||
fp.close()
|
||||
pass
|
||||
104
bananaSPLIT/UserInterface/compiledUI/avanzatetitolo.py
Normal file
104
bananaSPLIT/UserInterface/compiledUI/avanzatetitolo.py
Normal file
@@ -0,0 +1,104 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'avanzatetitolo.ui'
|
||||
#
|
||||
# Created by: PyQt5 UI code generator 5.12.1
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
||||
|
||||
class Ui_advtitolo(object):
|
||||
def setupUi(self, advtitolo):
|
||||
advtitolo.setObjectName("advtitolo")
|
||||
advtitolo.resize(480, 400)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(advtitolo.sizePolicy().hasHeightForWidth())
|
||||
advtitolo.setSizePolicy(sizePolicy)
|
||||
self.gridLayout = QtWidgets.QGridLayout(advtitolo)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||||
self.gridLayout.addItem(spacerItem, 3, 2, 1, 1)
|
||||
self.lbl_titoloschermata = QtWidgets.QLabel(advtitolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(11)
|
||||
self.lbl_titoloschermata.setFont(font)
|
||||
self.lbl_titoloschermata.setObjectName("lbl_titoloschermata")
|
||||
self.gridLayout.addWidget(self.lbl_titoloschermata, 0, 0, 1, 2)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.spn_data = QtWidgets.QSpinBox(advtitolo)
|
||||
self.spn_data.setMinimum(0)
|
||||
self.spn_data.setMaximum(3)
|
||||
self.spn_data.setObjectName("spn_data")
|
||||
self.verticalLayout.addWidget(self.spn_data)
|
||||
self.spn_titolo = QtWidgets.QSpinBox(advtitolo)
|
||||
self.spn_titolo.setMinimum(0)
|
||||
self.spn_titolo.setMaximum(3)
|
||||
self.spn_titolo.setObjectName("spn_titolo")
|
||||
self.verticalLayout.addWidget(self.spn_titolo)
|
||||
self.spn_numero = QtWidgets.QSpinBox(advtitolo)
|
||||
self.spn_numero.setMinimum(0)
|
||||
self.spn_numero.setMaximum(3)
|
||||
self.spn_numero.setObjectName("spn_numero")
|
||||
self.verticalLayout.addWidget(self.spn_numero)
|
||||
self.gridLayout.addLayout(self.verticalLayout, 3, 1, 1, 1)
|
||||
self.lbl_istruzioni = QtWidgets.QLabel(advtitolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.lbl_istruzioni.setFont(font)
|
||||
self.lbl_istruzioni.setObjectName("lbl_istruzioni")
|
||||
self.gridLayout.addWidget(self.lbl_istruzioni, 2, 0, 1, 2)
|
||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||
self.lbl_data = QtWidgets.QLabel(advtitolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.lbl_data.setFont(font)
|
||||
self.lbl_data.setObjectName("lbl_data")
|
||||
self.verticalLayout_2.addWidget(self.lbl_data)
|
||||
self.lbl_titolo = QtWidgets.QLabel(advtitolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.lbl_titolo.setFont(font)
|
||||
self.lbl_titolo.setObjectName("lbl_titolo")
|
||||
self.verticalLayout_2.addWidget(self.lbl_titolo)
|
||||
self.lbl_numero = QtWidgets.QLabel(advtitolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.lbl_numero.setFont(font)
|
||||
self.lbl_numero.setObjectName("lbl_numero")
|
||||
self.verticalLayout_2.addWidget(self.lbl_numero)
|
||||
self.gridLayout.addLayout(self.verticalLayout_2, 3, 0, 1, 1)
|
||||
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
||||
self.gridLayout.addItem(spacerItem1, 4, 0, 1, 1)
|
||||
self.line = QtWidgets.QFrame(advtitolo)
|
||||
self.line.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.line.setObjectName("line")
|
||||
self.gridLayout.addWidget(self.line, 1, 0, 1, 2)
|
||||
self.pushButton = QtWidgets.QPushButton(advtitolo)
|
||||
self.pushButton.setObjectName("pushButton")
|
||||
self.gridLayout.addWidget(self.pushButton, 5, 2, 1, 1)
|
||||
self.pushButton_2 = QtWidgets.QPushButton(advtitolo)
|
||||
self.pushButton_2.setObjectName("pushButton_2")
|
||||
self.gridLayout.addWidget(self.pushButton_2, 5, 1, 1, 1)
|
||||
|
||||
self.retranslateUi(advtitolo)
|
||||
QtCore.QMetaObject.connectSlotsByName(advtitolo)
|
||||
|
||||
def retranslateUi(self, advtitolo):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
advtitolo.setWindowTitle(_translate("advtitolo", "Form"))
|
||||
self.lbl_titoloschermata.setText(_translate("advtitolo", "Modifica ordine elementi nome file"))
|
||||
self.lbl_istruzioni.setText(_translate("advtitolo", "Indica la posizione dell\'elemento nel nome del file"))
|
||||
self.lbl_data.setText(_translate("advtitolo", "Data"))
|
||||
self.lbl_titolo.setText(_translate("advtitolo", "Titolo"))
|
||||
self.lbl_numero.setText(_translate("advtitolo", "Numero"))
|
||||
self.pushButton.setText(_translate("advtitolo", "Avanti"))
|
||||
self.pushButton_2.setText(_translate("advtitolo", "Indietro"))
|
||||
|
||||
|
||||
159
bananaSPLIT/UserInterface/compiledUI/mainwindow.py
Normal file
159
bananaSPLIT/UserInterface/compiledUI/mainwindow.py
Normal file
@@ -0,0 +1,159 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'mainwindow.ui'
|
||||
#
|
||||
# Created by: PyQt5 UI code generator 5.12.1
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
||||
|
||||
class Ui_mainwin(object):
|
||||
def setupUi(self, mainwin):
|
||||
mainwin.setObjectName("mainwin")
|
||||
mainwin.setEnabled(True)
|
||||
mainwin.resize(678, 517)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(mainwin.sizePolicy().hasHeightForWidth())
|
||||
mainwin.setSizePolicy(sizePolicy)
|
||||
font = QtGui.QFont()
|
||||
font.setFamily("MS Shell Dlg 2")
|
||||
font.setPointSize(10)
|
||||
mainwin.setFont(font)
|
||||
mainwin.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
mainwin.setAnimated(False)
|
||||
self.centralwidget = QtWidgets.QWidget(mainwin)
|
||||
self.centralwidget.setObjectName("centralwidget")
|
||||
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.centralwidget)
|
||||
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||
self.wgt_main = QtWidgets.QTabWidget(self.centralwidget)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.wgt_main.sizePolicy().hasHeightForWidth())
|
||||
self.wgt_main.setSizePolicy(sizePolicy)
|
||||
self.wgt_main.setObjectName("wgt_main")
|
||||
self.wgt_mainPage1 = QtWidgets.QWidget()
|
||||
self.wgt_mainPage1.setObjectName("wgt_mainPage1")
|
||||
self.gridLayout = QtWidgets.QGridLayout(self.wgt_mainPage1)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.btn_avanti = QtWidgets.QPushButton(self.wgt_mainPage1)
|
||||
self.btn_avanti.setMinimumSize(QtCore.QSize(79, 0))
|
||||
self.btn_avanti.setMaximumSize(QtCore.QSize(80, 16777215))
|
||||
self.btn_avanti.setObjectName("btn_avanti")
|
||||
self.gridLayout.addWidget(self.btn_avanti, 2, 3, 1, 1)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.lbl_cartellasorg = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.lbl_cartellasorg.setFont(font)
|
||||
self.lbl_cartellasorg.setObjectName("lbl_cartellasorg")
|
||||
self.verticalLayout.addWidget(self.lbl_cartellasorg)
|
||||
self.lbl_cartelladest = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.lbl_cartelladest.setFont(font)
|
||||
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.setObjectName("verticalLayout_2")
|
||||
self.btn_cartellasorg = QtWidgets.QPushButton(self.wgt_mainPage1)
|
||||
self.btn_cartellasorg.setObjectName("btn_cartellasorg")
|
||||
self.verticalLayout_2.addWidget(self.btn_cartellasorg)
|
||||
self.btn_cartelladest = QtWidgets.QPushButton(self.wgt_mainPage1)
|
||||
self.btn_cartelladest.setObjectName("btn_cartelladest")
|
||||
self.verticalLayout_2.addWidget(self.btn_cartelladest)
|
||||
self.gridLayout.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
|
||||
self.btn_opzioni = QtWidgets.QPushButton(self.wgt_mainPage1)
|
||||
self.btn_opzioni.setMaximumSize(QtCore.QSize(80, 16777215))
|
||||
self.btn_opzioni.setObjectName("btn_opzioni")
|
||||
self.gridLayout.addWidget(self.btn_opzioni, 2, 2, 1, 1)
|
||||
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||
self.lbl_sorg = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
self.lbl_sorg.setObjectName("lbl_sorg")
|
||||
self.verticalLayout_4.addWidget(self.lbl_sorg)
|
||||
self.lbl_dest = QtWidgets.QLabel(self.wgt_mainPage1)
|
||||
self.lbl_dest.setObjectName("lbl_dest")
|
||||
self.verticalLayout_4.addWidget(self.lbl_dest)
|
||||
self.gridLayout.addLayout(self.verticalLayout_4, 0, 2, 1, 2)
|
||||
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||
self.chk_predefinita = QtWidgets.QCheckBox(self.wgt_mainPage1)
|
||||
self.chk_predefinita.setObjectName("chk_predefinita")
|
||||
self.horizontalLayout_2.addWidget(self.chk_predefinita)
|
||||
self.gridLayout.addLayout(self.horizontalLayout_2, 1, 0, 1, 4)
|
||||
self.wgt_main.addTab(self.wgt_mainPage1, "")
|
||||
self.verticalLayout_3.addWidget(self.wgt_main)
|
||||
self.line_2 = QtWidgets.QFrame(self.centralwidget)
|
||||
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.line_2.setObjectName("line_2")
|
||||
self.verticalLayout_3.addWidget(self.line_2)
|
||||
self.wgt_sub = QtWidgets.QWidget(self.centralwidget)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.wgt_sub.sizePolicy().hasHeightForWidth())
|
||||
self.wgt_sub.setSizePolicy(sizePolicy)
|
||||
self.wgt_sub.setMinimumSize(QtCore.QSize(0, 75))
|
||||
self.wgt_sub.setMaximumSize(QtCore.QSize(16777215, 500))
|
||||
self.wgt_sub.setObjectName("wgt_sub")
|
||||
self.horizontalLayout = QtWidgets.QHBoxLayout(self.wgt_sub)
|
||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||
self.lbl_log = QtWidgets.QLabel(self.wgt_sub)
|
||||
self.lbl_log.setObjectName("lbl_log")
|
||||
self.horizontalLayout.addWidget(self.lbl_log)
|
||||
self.verticalLayout_3.addWidget(self.wgt_sub)
|
||||
mainwin.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QtWidgets.QMenuBar(mainwin)
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 678, 21))
|
||||
self.menubar.setNativeMenuBar(True)
|
||||
self.menubar.setObjectName("menubar")
|
||||
self.bar_file = QtWidgets.QMenu(self.menubar)
|
||||
self.bar_file.setObjectName("bar_file")
|
||||
mainwin.setMenuBar(self.menubar)
|
||||
self.statusbar = QtWidgets.QStatusBar(mainwin)
|
||||
self.statusbar.setObjectName("statusbar")
|
||||
mainwin.setStatusBar(self.statusbar)
|
||||
self.toolBar = QtWidgets.QToolBar(mainwin)
|
||||
self.toolBar.setMovable(False)
|
||||
self.toolBar.setFloatable(False)
|
||||
self.toolBar.setObjectName("toolBar")
|
||||
mainwin.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
|
||||
self.actionCarica_Preset = QtWidgets.QAction(mainwin)
|
||||
self.actionCarica_Preset.setObjectName("actionCarica_Preset")
|
||||
self.actionSalva_Preset = QtWidgets.QAction(mainwin)
|
||||
self.actionSalva_Preset.setObjectName("actionSalva_Preset")
|
||||
self.bar_file.addAction(self.actionCarica_Preset)
|
||||
self.bar_file.addAction(self.actionSalva_Preset)
|
||||
self.menubar.addAction(self.bar_file.menuAction())
|
||||
|
||||
self.retranslateUi(mainwin)
|
||||
QtCore.QMetaObject.connectSlotsByName(mainwin)
|
||||
|
||||
def retranslateUi(self, mainwin):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
mainwin.setWindowTitle(_translate("mainwin", "bananaSPLIT"))
|
||||
self.btn_avanti.setText(_translate("mainwin", "Avanti"))
|
||||
self.lbl_cartellasorg.setText(_translate("mainwin", "Cartella sorgente"))
|
||||
self.lbl_cartelladest.setText(_translate("mainwin", "Cartella destinazione"))
|
||||
self.btn_cartellasorg.setText(_translate("mainwin", "..."))
|
||||
self.btn_cartelladest.setText(_translate("mainwin", "..."))
|
||||
self.btn_opzioni.setText(_translate("mainwin", "Opzioni"))
|
||||
self.lbl_sorg.setText(_translate("mainwin", "..."))
|
||||
self.lbl_dest.setText(_translate("mainwin", "..."))
|
||||
self.chk_predefinita.setText(_translate("mainwin", "Rendi predefinite le cartelle"))
|
||||
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"))
|
||||
self.toolBar.setWindowTitle(_translate("mainwin", "toolBar"))
|
||||
self.actionCarica_Preset.setText(_translate("mainwin", "Carica Preset"))
|
||||
self.actionSalva_Preset.setText(_translate("mainwin", "Salva Preset"))
|
||||
|
||||
|
||||
88
bananaSPLIT/UserInterface/compiledUI/selezout.py
Normal file
88
bananaSPLIT/UserInterface/compiledUI/selezout.py
Normal file
@@ -0,0 +1,88 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'selezout.ui'
|
||||
#
|
||||
# Created by: PyQt5 UI code generator 5.12.1
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
||||
|
||||
class Ui_selezout(object):
|
||||
def setupUi(self, selezout):
|
||||
selezout.setObjectName("selezout")
|
||||
selezout.resize(480, 400)
|
||||
self.gridLayout = QtWidgets.QGridLayout(selezout)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.line = QtWidgets.QFrame(selezout)
|
||||
self.line.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.line.setObjectName("line")
|
||||
self.gridLayout.addWidget(self.line, 1, 0, 1, 1)
|
||||
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
||||
self.gridLayout.addItem(spacerItem, 3, 0, 1, 1)
|
||||
self.lbl_indicazioni = QtWidgets.QLabel(selezout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.lbl_indicazioni.sizePolicy().hasHeightForWidth())
|
||||
self.lbl_indicazioni.setSizePolicy(sizePolicy)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.lbl_indicazioni.setFont(font)
|
||||
self.lbl_indicazioni.setObjectName("lbl_indicazioni")
|
||||
self.gridLayout.addWidget(self.lbl_indicazioni, 0, 0, 1, 1)
|
||||
self.btn_avanti = QtWidgets.QPushButton(selezout)
|
||||
self.btn_avanti.setMinimumSize(QtCore.QSize(75, 0))
|
||||
self.btn_avanti.setMaximumSize(QtCore.QSize(75, 16777215))
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.btn_avanti.setFont(font)
|
||||
self.btn_avanti.setObjectName("btn_avanti")
|
||||
self.gridLayout.addWidget(self.btn_avanti, 4, 2, 1, 1)
|
||||
self.btn_indietro = QtWidgets.QPushButton(selezout)
|
||||
self.btn_indietro.setMinimumSize(QtCore.QSize(75, 0))
|
||||
self.btn_indietro.setMaximumSize(QtCore.QSize(75, 16777215))
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.btn_indietro.setFont(font)
|
||||
self.btn_indietro.setObjectName("btn_indietro")
|
||||
self.gridLayout.addWidget(self.btn_indietro, 4, 1, 1, 1)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.rad_mainbodyEFile = QtWidgets.QRadioButton(selezout)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.rad_mainbodyEFile.setFont(font)
|
||||
self.rad_mainbodyEFile.setObjectName("rad_mainbodyEFile")
|
||||
self.verticalLayout.addWidget(self.rad_mainbodyEFile)
|
||||
self.rad_mainbody = QtWidgets.QRadioButton(selezout)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.rad_mainbody.setFont(font)
|
||||
self.rad_mainbody.setObjectName("rad_mainbody")
|
||||
self.verticalLayout.addWidget(self.rad_mainbody)
|
||||
self.rad_file = QtWidgets.QRadioButton(selezout)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.rad_file.setFont(font)
|
||||
self.rad_file.setObjectName("rad_file")
|
||||
self.verticalLayout.addWidget(self.rad_file)
|
||||
self.gridLayout.addLayout(self.verticalLayout, 2, 0, 1, 3)
|
||||
|
||||
self.retranslateUi(selezout)
|
||||
QtCore.QMetaObject.connectSlotsByName(selezout)
|
||||
|
||||
def retranslateUi(self, selezout):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
selezout.setWindowTitle(_translate("selezout", "Form"))
|
||||
self.lbl_indicazioni.setText(_translate("selezout", "Seleziona il tipo di file"))
|
||||
self.btn_avanti.setText(_translate("selezout", "Avanti"))
|
||||
self.btn_indietro.setText(_translate("selezout", "Indietro"))
|
||||
self.rad_mainbodyEFile.setText(_translate("selezout", "Bodyfile + File singoli"))
|
||||
self.rad_mainbody.setText(_translate("selezout", "Bodyfile"))
|
||||
self.rad_file.setText(_translate("selezout", "File singoli"))
|
||||
|
||||
|
||||
162
bananaSPLIT/UserInterface/compiledUI/titolow.py
Normal file
162
bananaSPLIT/UserInterface/compiledUI/titolow.py
Normal file
@@ -0,0 +1,162 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'titolow.ui'
|
||||
#
|
||||
# Created by: PyQt5 UI code generator 5.12.1
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
||||
|
||||
class Ui_titolo(object):
|
||||
def setupUi(self, titolo):
|
||||
titolo.setObjectName("titolo")
|
||||
titolo.resize(480, 400)
|
||||
self.gridLayout = QtWidgets.QGridLayout(titolo)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.radioButton_4 = QtWidgets.QRadioButton(titolo)
|
||||
self.radioButton_4.setObjectName("radioButton_4")
|
||||
self.gridLayout.addWidget(self.radioButton_4, 10, 0, 1, 1)
|
||||
self.line = QtWidgets.QFrame(titolo)
|
||||
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.chc_titolo = QtWidgets.QCheckBox(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.chc_titolo.setFont(font)
|
||||
self.chc_titolo.setObjectName("chc_titolo")
|
||||
self.gridLayout.addWidget(self.chc_titolo, 4, 0, 1, 2)
|
||||
self.radioButton_6 = QtWidgets.QRadioButton(titolo)
|
||||
self.radioButton_6.setObjectName("radioButton_6")
|
||||
self.gridLayout.addWidget(self.radioButton_6, 11, 1, 1, 1)
|
||||
self.line_3 = QtWidgets.QFrame(titolo)
|
||||
self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.line_3.setObjectName("line_3")
|
||||
self.gridLayout.addWidget(self.line_3, 7, 0, 1, 3)
|
||||
self.lbl_impotit = QtWidgets.QLabel(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.lbl_impotit.setFont(font)
|
||||
self.lbl_impotit.setObjectName("lbl_impotit")
|
||||
self.gridLayout.addWidget(self.lbl_impotit, 0, 0, 1, 3)
|
||||
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||
self.btn_avanzate = QtWidgets.QPushButton(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.btn_avanzate.setFont(font)
|
||||
self.btn_avanzate.setObjectName("btn_avanzate")
|
||||
self.horizontalLayout_3.addWidget(self.btn_avanzate)
|
||||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||||
self.horizontalLayout_3.addItem(spacerItem)
|
||||
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||
self.pushButton = QtWidgets.QPushButton(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.pushButton.setFont(font)
|
||||
self.pushButton.setObjectName("pushButton")
|
||||
self.horizontalLayout_2.addWidget(self.pushButton)
|
||||
self.btn_avanti = QtWidgets.QPushButton(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.btn_avanti.setFont(font)
|
||||
self.btn_avanti.setObjectName("btn_avanti")
|
||||
self.horizontalLayout_2.addWidget(self.btn_avanti)
|
||||
self.horizontalLayout_3.addLayout(self.horizontalLayout_2)
|
||||
self.gridLayout.addLayout(self.horizontalLayout_3, 13, 0, 1, 3)
|
||||
self.radioButton_5 = QtWidgets.QRadioButton(titolo)
|
||||
self.radioButton_5.setObjectName("radioButton_5")
|
||||
self.gridLayout.addWidget(self.radioButton_5, 10, 1, 1, 2)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.rad_datajpn = QtWidgets.QRadioButton(titolo)
|
||||
self.rad_datajpn.setObjectName("rad_datajpn")
|
||||
self.verticalLayout.addWidget(self.rad_datajpn)
|
||||
self.rad_dataita = QtWidgets.QRadioButton(titolo)
|
||||
self.rad_dataita.setObjectName("rad_dataita")
|
||||
self.verticalLayout.addWidget(self.rad_dataita)
|
||||
self.rad_datausa = QtWidgets.QRadioButton(titolo)
|
||||
self.rad_datausa.setObjectName("rad_datausa")
|
||||
self.verticalLayout.addWidget(self.rad_datausa)
|
||||
self.gridLayout.addLayout(self.verticalLayout, 3, 0, 1, 3)
|
||||
self.radioButton = QtWidgets.QRadioButton(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(8)
|
||||
self.radioButton.setFont(font)
|
||||
self.radioButton.setObjectName("radioButton")
|
||||
self.gridLayout.addWidget(self.radioButton, 9, 1, 1, 2)
|
||||
self.line_2 = QtWidgets.QFrame(titolo)
|
||||
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.line_2.setObjectName("line_2")
|
||||
self.gridLayout.addWidget(self.line_2, 12, 0, 1, 3)
|
||||
self.chc_docnum = QtWidgets.QCheckBox(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.chc_docnum.setFont(font)
|
||||
self.chc_docnum.setChecked(True)
|
||||
self.chc_docnum.setObjectName("chc_docnum")
|
||||
self.gridLayout.addWidget(self.chc_docnum, 6, 0, 1, 2)
|
||||
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||
self.lbl_ncarat = QtWidgets.QLabel(titolo)
|
||||
self.lbl_ncarat.setObjectName("lbl_ncarat")
|
||||
self.horizontalLayout.addWidget(self.lbl_ncarat)
|
||||
self.spn_ncarat = QtWidgets.QSpinBox(titolo)
|
||||
self.spn_ncarat.setMinimum(1)
|
||||
self.spn_ncarat.setObjectName("spn_ncarat")
|
||||
self.horizontalLayout.addWidget(self.spn_ncarat)
|
||||
self.gridLayout.addLayout(self.horizontalLayout, 5, 0, 1, 3)
|
||||
self.label = QtWidgets.QLabel(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.label.setFont(font)
|
||||
self.label.setObjectName("label")
|
||||
self.gridLayout.addWidget(self.label, 8, 0, 1, 2)
|
||||
self.radioButton_3 = QtWidgets.QRadioButton(titolo)
|
||||
self.radioButton_3.setObjectName("radioButton_3")
|
||||
self.gridLayout.addWidget(self.radioButton_3, 9, 0, 1, 1)
|
||||
self.chc_data = QtWidgets.QCheckBox(titolo)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.chc_data.setFont(font)
|
||||
self.chc_data.setObjectName("chc_data")
|
||||
self.gridLayout.addWidget(self.chc_data, 2, 0, 1, 1)
|
||||
self.radioButton_2 = QtWidgets.QRadioButton(titolo)
|
||||
self.radioButton_2.setObjectName("radioButton_2")
|
||||
self.gridLayout.addWidget(self.radioButton_2, 11, 0, 1, 1)
|
||||
self.lineEdit = QtWidgets.QLineEdit(titolo)
|
||||
self.lineEdit.setObjectName("lineEdit")
|
||||
self.gridLayout.addWidget(self.lineEdit, 11, 2, 1, 1)
|
||||
|
||||
self.retranslateUi(titolo)
|
||||
QtCore.QMetaObject.connectSlotsByName(titolo)
|
||||
|
||||
def retranslateUi(self, titolo):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
titolo.setWindowTitle(_translate("titolo", "Form"))
|
||||
self.radioButton_4.setText(_translate("titolo", ","))
|
||||
self.chc_titolo.setText(_translate("titolo", "Titolo articolo"))
|
||||
self.radioButton_6.setText(_translate("titolo", "Altro:"))
|
||||
self.lbl_impotit.setText(_translate("titolo", "Impostazioni nome file"))
|
||||
self.btn_avanzate.setText(_translate("titolo", "Avanzate"))
|
||||
self.pushButton.setText(_translate("titolo", "Indietro"))
|
||||
self.btn_avanti.setText(_translate("titolo", "Avanti"))
|
||||
self.radioButton_5.setText(_translate("titolo", "_"))
|
||||
self.rad_datajpn.setText(_translate("titolo", "YYYY MM DD, es. 2000 12 31"))
|
||||
self.rad_dataita.setText(_translate("titolo", "DD MM YYYY, es. 31 12 2000"))
|
||||
self.rad_datausa.setText(_translate("titolo", "MM DD YYYY, es. 12 31 2000"))
|
||||
self.radioButton.setText(_translate("titolo", "-"))
|
||||
self.chc_docnum.setText(_translate("titolo", "Numero documento"))
|
||||
self.lbl_ncarat.setText(_translate("titolo", "Numero di caratteri"))
|
||||
self.label.setText(_translate("titolo", "Separatore"))
|
||||
self.radioButton_3.setText(_translate("titolo", "Spazio"))
|
||||
self.chc_data.setText(_translate("titolo", "Data"))
|
||||
self.radioButton_2.setText(_translate("titolo", "\\"))
|
||||
|
||||
|
||||
@@ -1,25 +1,255 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<author></author>
|
||||
<comment></comment>
|
||||
<exportmacro></exportmacro>
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow" >
|
||||
<class>mainwin</class>
|
||||
<widget class="QMainWindow" name="mainwin">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>600</height>
|
||||
<width>678</width>
|
||||
<height>517</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>MainWindow</string>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>MS Shell Dlg 2</family>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>bananaSPLIT</string>
|
||||
</property>
|
||||
<property name="animated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="wgt_main">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<widget class="QWidget" name="wgt_mainPage1">
|
||||
<attribute name="title">
|
||||
<string>SelezionaFile</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="2" column="3">
|
||||
<widget class="QPushButton" name="btn_avanti">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>79</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>80</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Avanti</string>
|
||||
</property>
|
||||
<widget class="QMenuBar" name="menubar" />
|
||||
<widget class="QWidget" name="centralwidget" />
|
||||
<widget class="QStatusBar" name="statusbar" />
|
||||
</widget>
|
||||
<pixmapfunction></pixmapfunction>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_cartellasorg">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Cartella sorgente</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_cartelladest">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Cartella destinazione</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_cartellasorg">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_cartelladest">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="btn_opzioni">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>80</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Opzioni</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" colspan="2">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_sorg">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_dest">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="4">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="chk_predefinita">
|
||||
<property name="text">
|
||||
<string>Rendi predefinite le cartelle</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="wgt_sub" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>75</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>500</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_log">
|
||||
<property name="text">
|
||||
<string>qui ci va il log ma devo pensare a come farlo in modo non eccessivamente stupido</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menubar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>678</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="nativeMenuBar">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QMenu" name="bar_file">
|
||||
<property name="title">
|
||||
<string>File</string>
|
||||
</property>
|
||||
<addaction name="actionCarica_Preset"/>
|
||||
<addaction name="actionSalva_Preset"/>
|
||||
</widget>
|
||||
<addaction name="bar_file"/>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
<widget class="QToolBar" name="toolBar">
|
||||
<property name="windowTitle">
|
||||
<string>toolBar</string>
|
||||
</property>
|
||||
<property name="movable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="floatable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
<action name="actionCarica_Preset">
|
||||
<property name="text">
|
||||
<string>Carica Preset</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSalva_Preset">
|
||||
<property name="text">
|
||||
<string>Salva Preset</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
|
||||
150
bananaSPLIT/UserInterface/selezout.ui
Normal file
150
bananaSPLIT/UserInterface/selezout.ui
Normal file
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>selezout</class>
|
||||
<widget class="QWidget" name="selezout">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>480</width>
|
||||
<height>400</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="0">
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lbl_indicazioni">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Seleziona il tipo di file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2">
|
||||
<widget class="QPushButton" name="btn_avanti">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Avanti</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QPushButton" name="btn_indietro">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>75</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Indietro</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetMaximumSize</enum>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rad_mainbodyEFile">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Bodyfile + File singoli</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rad_mainbody">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Bodyfile</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rad_file">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>File singoli</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
255
bananaSPLIT/UserInterface/titolow.ui
Normal file
255
bananaSPLIT/UserInterface/titolow.ui
Normal file
@@ -0,0 +1,255 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>titolo</class>
|
||||
<widget class="QWidget" name="titolo">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>480</width>
|
||||
<height>400</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="10" column="0">
|
||||
<widget class="QRadioButton" name="radioButton_4">
|
||||
<property name="text">
|
||||
<string>,</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="chc_titolo">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Titolo articolo</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1">
|
||||
<widget class="QRadioButton" name="radioButton_6">
|
||||
<property name="text">
|
||||
<string>Altro:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0" colspan="3">
|
||||
<widget class="Line" name="line_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QLabel" name="lbl_impotit">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Impostazioni nome file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="0" colspan="3">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_avanzate">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Avanzate</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<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>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Indietro</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_avanti">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Avanti</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="10" column="1" colspan="2">
|
||||
<widget class="QRadioButton" name="radioButton_5">
|
||||
<property name="text">
|
||||
<string>_</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rad_datajpn">
|
||||
<property name="text">
|
||||
<string>YYYY MM DD, es. 2000 12 31</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rad_dataita">
|
||||
<property name="text">
|
||||
<string>DD MM YYYY, es. 31 12 2000</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rad_datausa">
|
||||
<property name="text">
|
||||
<string>MM DD YYYY, es. 12 31 2000</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="9" column="1" colspan="2">
|
||||
<widget class="QRadioButton" name="radioButton">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>8</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>-</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="0" colspan="3">
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="chc_docnum">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Numero documento</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0" colspan="3">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_ncarat">
|
||||
<property name="text">
|
||||
<string>Numero di caratteri</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spn_ncarat">
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="8" column="0" colspan="2">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Separatore</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QRadioButton" name="radioButton_3">
|
||||
<property name="text">
|
||||
<string>Spazio</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="chc_data">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Data</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="QRadioButton" name="radioButton_2">
|
||||
<property name="text">
|
||||
<string>\</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="2">
|
||||
<widget class="QLineEdit" name="lineEdit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
32
bananaSPLIT/bananaSPLIT.exe.spec
Normal file
32
bananaSPLIT/bananaSPLIT.exe.spec
Normal file
@@ -0,0 +1,32 @@
|
||||
# -*- mode: python -*-
|
||||
|
||||
block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(['main.py'],
|
||||
pathex=['D:\\Emanuele\\Documenti\\workspace\\bananaSPLIT\\bananaSPLIT'],
|
||||
binaries=[],
|
||||
datas=[('C:\\Users\\Emanuele Trabattoni\\AppData\\Roaming\\Python\\Python37\\site-packages\\text_unidecode\\data.bin', '.\\text_unidecode')],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False)
|
||||
pyz = PYZ(a.pure, a.zipped_data,
|
||||
cipher=block_cipher)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
[],
|
||||
name='bananaSPLIT.exe',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
runtime_tmpdir=None,
|
||||
console=True , icon='banana.ico')
|
||||
BIN
bananaSPLIT/dist/bananaSPLIT.exe
vendored
Normal file
BIN
bananaSPLIT/dist/bananaSPLIT.exe
vendored
Normal file
Binary file not shown.
@@ -38,7 +38,6 @@
|
||||
"CHARTS:"
|
||||
]
|
||||
},
|
||||
"settings":
|
||||
"settings": {
|
||||
"encoding": "utf-8",
|
||||
"monthPosition": 0,
|
||||
59
bananaSPLIT/guimain.py
Normal file
59
bananaSPLIT/guimain.py
Normal file
@@ -0,0 +1,59 @@
|
||||
'''
|
||||
Created on 2 nov 2019
|
||||
|
||||
@author: Emanuele Trabattoni
|
||||
'''
|
||||
import sys
|
||||
import PyQt5.QtWidgets
|
||||
from mainwindow import Ui_mainwin
|
||||
from selezout import Ui_selezout
|
||||
from titolow import Ui_titolo
|
||||
from avanzatetitolo import Ui_advtitolo
|
||||
|
||||
class bananaMain(PyQt5.QtWidgets.QMainWindow):
|
||||
def __init__(self):
|
||||
PyQt5.QtWidgets.QMainWindow.__init__(self)
|
||||
self.ui = Ui_mainwin()
|
||||
self.ui.setupUi(self)
|
||||
self.titolo = bananaTitolo()
|
||||
self.titoloavanzate = bananaTitoloAvanzate()
|
||||
self.selezout = bananaSelezOut()
|
||||
|
||||
self.ui.wgt_main.addTab(self.titolo, "Titolo")
|
||||
self.ui.wgt_main.addTab(self.titoloavanzate, "AvanzateTitolo")
|
||||
self.ui.wgt_main.addTab(self.selezout, "SelezioneOutput")
|
||||
pass
|
||||
|
||||
class bananaTitolo(PyQt5.QtWidgets.QWidget):
|
||||
def __init__(self):
|
||||
PyQt5.QtWidgets.QWidget.__init__(self)
|
||||
self.titoloui = Ui_titolo()
|
||||
self.titoloui.setupUi(self)
|
||||
pass
|
||||
|
||||
class bananaTitoloAvanzate(PyQt5.QtWidgets.QWidget):
|
||||
def __init__(self):
|
||||
PyQt5.QtWidgets.QWidget.__init__(self)
|
||||
self.titoloavanzateui = Ui_advtitolo()
|
||||
self.titoloavanzateui.setupUi(self)
|
||||
pass
|
||||
|
||||
class bananaSelezOut(PyQt5.QtWidgets.QWidget):
|
||||
def __init__(self):
|
||||
PyQt5.QtWidgets.QWidget.__init__(self)
|
||||
self.selezoutui = Ui_selezout()
|
||||
self.selezoutui.setupUi(self)
|
||||
pass
|
||||
#############################################################
|
||||
####################### MAIN ################################
|
||||
#############################################################
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = PyQt5.QtWidgets.QApplication(sys.argv)
|
||||
window = bananaMain()
|
||||
window.resize(window.sizeHint().width(), window.size().height())
|
||||
window.show()
|
||||
rv = app.exec()
|
||||
print("ExitCode: {}".format(rv))
|
||||
sys.exit(rv)
|
||||
pass
|
||||
@@ -15,26 +15,24 @@ from pprint import pprint
|
||||
from glob import glob
|
||||
from copy import deepcopy
|
||||
from slugify import slugify
|
||||
|
||||
|
||||
####### VAR GLOBALI #######
|
||||
|
||||
####### FUNZIONI GLOBALI #######
|
||||
def printTitle():
|
||||
print(". . . , \n| | _ | _. _ ._ _ _ -+- _ * \n|/\|(/,|(_.(_)[ | )(/, | (_) *")
|
||||
|
||||
print(Fore.LIGHTYELLOW_EX,\
|
||||
' _ ___________ _ _____ _____ \n\
|
||||
print(Fore.LIGHTYELLOW_EX,' _ ___________ _ _____ _____ \n\
|
||||
| | / ___| ___ \ | |_ _|_ _| \n\
|
||||
| |__ __ _ _ __ __ _ _ __ __ _\ `--.| |_/ / | | | | | \n\
|
||||
| \'_ \ / _` | \'_ \ / _` | \'_ \ / _` |`--. \ __/| | | | | | \n\
|
||||
| |_) | (_| | | | | (_| | | | | (_| /\__/ / | | |_____| |_ | | \n\
|
||||
|_.__/ \__,_|_| |_|\__,_|_| |_|\__,_\____/\_| \_____/\___/ \_/')
|
||||
|
||||
print ('\t\t\t\t\t\t\tVersione 0.4a\n\n', Style.RESET_ALL)
|
||||
print ('\t\t\t\t\t\t\tVersione 0.4b\n\n', Style.RESET_ALL)
|
||||
print('Iniziamo!!')
|
||||
pass
|
||||
|
||||
|
||||
#############################################################
|
||||
####################### MAIN ################################
|
||||
#############################################################
|
||||
@@ -111,14 +109,18 @@ try:
|
||||
else:
|
||||
print('Non ho capito la risposta, sii un po\' piu\' specifico... [y/n]\n')
|
||||
pass
|
||||
except:
|
||||
print(Fore.LIGHTRED_EX, 'OOPS! Qualcosa e\' andato storto, non riesco a trovare nessun file da leggere :(', Style.RESET_ALL)
|
||||
input()
|
||||
sys.exit()
|
||||
|
||||
try:
|
||||
if settings['removeOldFiles']:
|
||||
print("Rimuovo i vecchi file dalla cartella di destinazione..")
|
||||
for x in glob(cfg['OUTworkPath']+'*.txt'):
|
||||
os.remove(x)
|
||||
except:
|
||||
print(Fore.LIGHTRED_EX, 'OOPS! Qualcosa e\' andato storto, non riesco a trovare nessun file da leggere :(', Style.RESET_ALL)
|
||||
input()
|
||||
sys.exit()
|
||||
print(Fore.LIGHTRED_EX, 'OOPS! Qualcosa e\' andato storto, non riesco a rimuovere i vecchi file :(', Style.RESET_ALL)
|
||||
|
||||
lastTime=time.time()
|
||||
fileCounter = 1
|
||||
|
||||
64
bananaconfEN.json
Normal file
64
bananaconfEN.json
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"INworkPath": "D:\\Test\\",
|
||||
"OUTworkPath": "D:\\Test\\Separati\\",
|
||||
"OUTnameFormat":"TEST_{docnum}_{year:04d}{month:02d}{day:02d}_{title}.txt",
|
||||
"docStruct": {
|
||||
"docSep": "\\s*Copyright [(0-9)]+",
|
||||
"dateFormat":"{month} {day:d}, {year:d}{}",
|
||||
"dateWords": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"headWords": [
|
||||
"BYLINE:",
|
||||
"SECTION:",
|
||||
"LENGTH:",
|
||||
"DATELINE:",
|
||||
"HIGHLIGHT:",
|
||||
"Email:"
|
||||
],
|
||||
"tailWords": [
|
||||
"Newstex ID" ,
|
||||
"NOTES",
|
||||
"LANGUAGE:",
|
||||
"GRAPHIC:",
|
||||
"TYPE:",
|
||||
"URL:",
|
||||
"LOAD-DATE:",
|
||||
"PUBLICATION-TYPE:",
|
||||
"DOCUMENT-TYPE:",
|
||||
"CHARTS:",
|
||||
"JOURNAL-CODE:"
|
||||
]
|
||||
},
|
||||
"settings": {
|
||||
"encoding": "utf-8",
|
||||
"monthPosition": 0,
|
||||
"getNewsPaperName": true,
|
||||
"nameNotFoundStr" : "--ND--",
|
||||
"includeTitle" : true,
|
||||
"removeDuplicates": true,
|
||||
"showSkipped": false,
|
||||
"showRemovedDuplicates": true,
|
||||
"maxTitleLen": 32,
|
||||
"loadTXT": true,
|
||||
"loadDOCX": false,
|
||||
"removeOldFiles":true,
|
||||
"saveSeparateFiles": true,
|
||||
"saveBodyFile": true,
|
||||
"saveBodyNumber":true,
|
||||
"delLF": false,
|
||||
"delWordBreak": true,
|
||||
"delChars": "'|@|#"
|
||||
}
|
||||
}
|
||||
61
bananaconfITA.json
Normal file
61
bananaconfITA.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"INworkPath": "C:\\Test\\",
|
||||
"OUTworkPath": "C:\\Test\\Separati\\",
|
||||
"OUTnameFormat":"TEST_{docnum}_{year:04d}{month:02d}{day:02d}_{papername}_{title}.txt",
|
||||
"docStruct": {
|
||||
"docSep": "Copyright [(0-9)]+",
|
||||
"dateFormat":"{day:d} {month} {year:d} {}",
|
||||
"dateWords": [
|
||||
"Gennaio",
|
||||
"Febbraio",
|
||||
"Marzo",
|
||||
"Aprile",
|
||||
"Maggio",
|
||||
"Giugno",
|
||||
"Luglio",
|
||||
"Agosto",
|
||||
"Settembre",
|
||||
"Ottobre",
|
||||
"Novembre",
|
||||
"Dicembre"
|
||||
],
|
||||
"headWords": [
|
||||
"BYLINE:",
|
||||
"SECTION:",
|
||||
"LENGTH:",
|
||||
"DATELINE:",
|
||||
"HIGHLIGHT:",
|
||||
"Email:"
|
||||
],
|
||||
"tailWords": [
|
||||
"LANGUAGE:",
|
||||
"GRAPHIC:",
|
||||
"TYPE:",
|
||||
"URL:",
|
||||
"LOAD-DATE:",
|
||||
"PUBLICATION-TYPE:",
|
||||
"DOCUMENT-TYPE:",
|
||||
"CHARTS:"
|
||||
]
|
||||
},
|
||||
"settings": {
|
||||
"encoding": "utf-8",
|
||||
"monthPosition": 0,
|
||||
"getNewsPaperName": true,
|
||||
"nameNotFoundStr" : "--ND--",
|
||||
"includeTitle" : true,
|
||||
"removeDuplicates": true,
|
||||
"showSkipped": false,
|
||||
"showRemovedDuplicates": true,
|
||||
"maxTitleLen": 32,
|
||||
"loadTXT": true,
|
||||
"loadDOCX": false,
|
||||
"removeOldFiles":true,
|
||||
"saveSeparateFiles": true,
|
||||
"saveBodyFile": true,
|
||||
"saveBodyNumber":true,
|
||||
"delLF": false,
|
||||
"delWordBreak": true,
|
||||
"delChars": "'|@|#"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user