Update .gitignore and format __main__.py

This commit is contained in:
Wiktor Zykubek 2023-07-11 15:16:40 +02:00
parent 866f57569a
commit d72d8c751d
No known key found for this signature in database
GPG Key ID: 0DAA9DC01449FCA2
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -73,6 +73,7 @@ __pycache__/
dist/* dist/*
build/* build/*
ui_*.py ui_*.py
.ropeproject/
# Binaries # Binaries
# -------- # --------

View File

@ -1,14 +1,16 @@
# This Python file uses the following encoding: utf-8 # coding=utf-8
from PySide6.QtWidgets import QApplication from PySide6.QtWidgets import QApplication
from . import MainWindow from . import MainWindow
import sys import sys
def main(): def main():
app = QApplication(sys.argv) app = QApplication(sys.argv)
widget = MainWindow() widget = MainWindow()
widget.show() widget.show()
sys.exit(app.exec()) sys.exit(app.exec())
if __name__ == "__main__": if __name__ == "__main__":
main() main()