Skip to content

Commit

Permalink
added gui start command
Browse files Browse the repository at this point in the history
  • Loading branch information
nesb1 committed Jun 19, 2020
1 parent f3c3a8b commit ef98fd4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ format:
$(VENV)/bin/autoflake --recursive --in-place --remove-all-unused-imports $(ALL)
$(VENV)/bin/unify --in-place --recursive $(ALL)

run:
start_gui

ci: lint test
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "gui"
name = "src"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
Expand All @@ -16,6 +16,9 @@ isort = "^4.3.21"
autoflake = "^1.3.1"
unify = "^0.5"

[tool.poetry.scripts]
start_gui = "src.main:main"

[tool.poetry.dev-dependencies]

[build-system]
Expand Down
10 changes: 7 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ def launch(self):
self.loginForm.init()


if __name__ == '__main__':
def main():
app = QApplication(argv)
main = Main()
main.launch()
main_ = Main()
main_.launch()
app.exec_()


if __name__ == '__main__':
main()

0 comments on commit ef98fd4

Please sign in to comment.