from pathlib import Path
from PyQt5 import QtWidgets
from gui.ui.OutputFolder import Ui_Form
from gui.util.Modules import Modules
[docs]
class OutputFolder(Ui_Form, Modules):
"""
This is the `outpath` module. It can designate where data goes after
processing
"""
[docs]
def setupUi(self, Form):
super().setupUi(Form)
Modules.setupUi(self, Form)
[docs]
def run(self):
outpath = self.folderNameLineEdit.text()
try:
Modules.outpath = outpath
print("Output path folder has been set to " + outpath)
except Exception as e:
print(
"Error: {}; using default outpath: {}".format(
e,
Modules.outpath
)
)
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Form = QtWidgets.QWidget()
ui = OutputFolder()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())