[gitignore] add build and dist folders
This commit is contained in:
parent
6524c6afde
commit
63ecf934e6
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
*__pycache__
|
*__pycache__
|
||||||
resources.py
|
resources.py
|
||||||
|
build
|
||||||
|
dist
|
@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
import sys
|
import sys
|
||||||
from PyQt5.QtGui import QIcon
|
from PyQt5.QtGui import QIcon
|
||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
@ -15,6 +14,7 @@ except ImportError:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
print("executing main.main")
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
app.setApplicationName(cnst.application_name)
|
app.setApplicationName(cnst.application_name)
|
||||||
app.setApplicationVersion(str(cnst.application_version))
|
app.setApplicationVersion(str(cnst.application_version))
|
||||||
@ -33,12 +33,10 @@ def main():
|
|||||||
window.show()
|
window.show()
|
||||||
|
|
||||||
code = app.exec_()
|
code = app.exec_()
|
||||||
|
print("Application exit!")
|
||||||
pos = window.pos()
|
pos = window.pos()
|
||||||
settings.setValue("app/width", window.width())
|
settings.setValue("app/width", window.width())
|
||||||
settings.setValue("app/height", window.height())
|
settings.setValue("app/height", window.height())
|
||||||
settings.setValue("app/pos_x", pos.x())
|
settings.setValue("app/pos_x", pos.x())
|
||||||
settings.setValue("app/pos_y", pos.y())
|
settings.setValue("app/pos_y", pos.y())
|
||||||
sys.exit(code)
|
sys.exit(code)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
Loading…
Reference in New Issue
Block a user