diff --git a/.gitignore b/.gitignore index e69de29b..48635345 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +.idea/ +docs/ +*.autosave diff --git a/environment.yml b/environment.yml new file mode 100644 index 00000000..3fd65730 --- /dev/null +++ b/environment.yml @@ -0,0 +1,12 @@ +name: lucutus + +channels: +- conda-forge +- defaults + +dependencies: +- python=3.6.6 +- pyqt + +- pip: + - appdirs diff --git a/locutus/UI/mainwindow.ui b/locutus/UI/mainwindow.ui new file mode 100644 index 00000000..ef132371 --- /dev/null +++ b/locutus/UI/mainwindow.ui @@ -0,0 +1,112 @@ + + + MainWindow + + + + 0 + 0 + 800 + 600 + + + + MainWindow + + + + + + 20 + 470 + 114 + 32 + + + + PushButton + + + + + + 20 + 20 + 381 + 431 + + + + 1 + + + + Folders + + + + + 30 + 10 + 351 + 251 + + + + + + + Settings + + + + + + true + + + + 140 + 470 + 551 + 23 + + + + 24 + + + + + + + 0 + 0 + 800 + 22 + + + + + Something + + + + + + Anything + + + + + + + + + test + + + + + + diff --git a/locutus/__init__.py b/locutus/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/locutus/main.py b/locutus/main.py new file mode 100644 index 00000000..79470007 --- /dev/null +++ b/locutus/main.py @@ -0,0 +1,42 @@ +import sys +import os +from PyQt5.QtWidgets import QApplication, QWidget, QFileDialog +from PyQt5.QtGui import QIcon +from PyQt5 import uic +import appdirs + +appname = "Locutus" +appauthor = "BorgBase" +appdirs.user_data_dir(appname, appauthor) +appdirs.user_log_dir(appname, appauthor) + +#load both ui file +uifile = os.path.join(os.path.dirname(__file__), 'UI/mainwindow.ui') +form_1, base_1 = uic.loadUiType(uifile) + +class Example(base_1, form_1): + def __init__(self): + super(base_1,self).__init__() + self.setupUi(self) + self.pushButton.clicked.connect(self.change) + self.actiontest.triggered.connect(self.change) + + def change(self): + self.textEdit.setText('Hello Smu!!') + self.progressBar.setValue(35) + self.openFileNameDialog() + + def openFileNameDialog(self): + options = QFileDialog.Options() + options |= QFileDialog.ShowDirsOnly + options |= QFileDialog.DontUseNativeDialog + fileName = QFileDialog.getExistingDirectory( + self, "Choose Backup Directory", "", options=options) + if fileName: + print(fileName) + +if __name__ == '__main__': + app = QApplication(sys.argv) + ex = Example() + ex.show() + sys.exit(app.exec_()) diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..e69de29b