From ddeda5fae4fd894188dc6509289c3e89e4200ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Tue, 18 Aug 2020 00:02:17 +0200 Subject: [PATCH] add ui designer file --- .gitignore | 1 + Makefile | 12 +- README.md | 2 +- leaden/app.py | 8 +- leaden/ui.ui | 331 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 348 insertions(+), 6 deletions(-) create mode 100644 leaden/ui.ui diff --git a/.gitignore b/.gitignore index 9ab990a..1451bcb 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /target/ __pycache__/ _build/ +ui.py \ No newline at end of file diff --git a/Makefile b/Makefile index cd83c88..321aa32 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,22 @@ BIN = leaden -.PHONY: all clean install uninstall distclean +.PHONY: all build clean install uninstall distclean -all: - @echo did nothing. try targets: install, or uninstall. +all: build + + +build: + pyuic5 -x $(BIN)/ui.ui -o $(BIN)/ui.py clean: + $(RM) $(BIN)/ui.py $(RM) -dr $(BIN).egg-info + $(RM) -dr $(BIN)/__pycache__ $(RM) -dr build $(RM) -dr dist - $(RM) -dr $(BIN)/__pycache__ install: diff --git a/README.md b/README.md index 15805ab..c370993 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Some functions of Leaden may be also called from console. Run `leaden --help` to ## Manual - clone this project using git -- run `make install` +- run `make && make install` ## Ebuild diff --git a/leaden/app.py b/leaden/app.py index 243a03e..3525aee 100644 --- a/leaden/app.py +++ b/leaden/app.py @@ -3,9 +3,15 @@ import sys +from leaden import ui + def main(argv): - print("Test") + app = ui.QtWidgets.QApplication(sys.argv) + MainWindow = ui.QtWidgets.QMainWindow() + ui.Ui_MainWindow().setupUi(MainWindow) + MainWindow.show() + sys.exit(app.exec_()) if __name__ == "__main__": diff --git a/leaden/ui.ui b/leaden/ui.ui new file mode 100644 index 0000000..50f9be8 --- /dev/null +++ b/leaden/ui.ui @@ -0,0 +1,331 @@ + + + MainWindow + + + + 0 + 0 + 1023 + 720 + + + + MainWindow + + + + + + + + + + 1 + + + + + + + + + 500 + 500 + + + + + 500 + 500 + + + + 0 + + + + Tab 1 + + + + + + + + + + Tab 2 + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 1023 + 18 + + + + + File + + + + + + + + + + + Ebuild + + + + + + + + + + + + + + + + + + + + + + + + + + + Repoman + + + + + + + + + + + Help + + + + + + + + + + + + New + + + + + Open + + + + + Save + + + + + Save As + + + + + Close + + + + + Quit + + + + + About Leaden + + + + + Commit + + + + + Fix + + + + + Full + + + + + Help + + + + + Manifest + + + + + Manifest-Check + + + + + Scan + + + + + Setup + + + + + Clean + + + + + Fetch + + + + + Digest + + + + + Manifest + + + + + Unpack + + + + + Prepare + + + + + Configure + + + + + Compile + + + + + Test + + + + + Preinst + + + + + Install + + + + + Instprep + + + + + Postinst + + + + + Qmerge + + + + + Merge + + + + + Unmerge + + + + + Prerm + + + + + Postrm + + + + + Config + + + + + Package + + + + + Rpm + + + + + +