Configure modules for vscode
This commit is contained in:
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
end_of_line = lf
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.py]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[pyproject.toml]
|
||||||
|
indent_size = 4
|
||||||
14
.vscode/extensions.json
vendored
Normal file
14
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ms-python.python",
|
||||||
|
"ms-python.debugpy",
|
||||||
|
"ms-python.vscode-pylance",
|
||||||
|
"ms-python.vscode-python-envs",
|
||||||
|
"ms-python.mypy-type-checker",
|
||||||
|
"charliermarsh.ruff",
|
||||||
|
"editorconfig.editorconfig",
|
||||||
|
"njpwerner.autodocstring",
|
||||||
|
"redhat.vscode-yaml",
|
||||||
|
"tamasfe.even-better-toml"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"python.analysis.autoImportCompletions": true,
|
||||||
|
"python.analysis.extraPaths": [".venv/lib/python3.11/site-packages"],
|
||||||
|
"python.analysis.fixAll": ["source.unusedImports"],
|
||||||
|
"python.languageServer": "Pylance"
|
||||||
|
}
|
||||||
@@ -6,14 +6,14 @@ from PyQt6.QtCore import Qt
|
|||||||
from PyQt6.QtGui import QFontDatabase, QFont, QColor
|
from PyQt6.QtGui import QFontDatabase, QFont, QColor
|
||||||
from PyQt6.QtWidgets import QApplication, QMainWindow
|
from PyQt6.QtWidgets import QApplication, QMainWindow
|
||||||
|
|
||||||
from win11toast import toast
|
from win11toast import toast, notify
|
||||||
|
|
||||||
from slidergroovecolorstyle import ThinSubPageLineStyle, ThinAddPageLineStyle
|
from slidergroovecolorstyle import ThinSubPageLineStyle, ThinAddPageLineStyle
|
||||||
|
|
||||||
# Compile resources.qrc into resources_rc.py
|
# Compile resources.qrc into resources_rc.py
|
||||||
# rcc -g python resources.qrc -o resources_rc.py
|
# rcc -g python resources.qrc -o resources_rc.py
|
||||||
|
|
||||||
import resources # This is generated from the .qrc file
|
import resources # This is generated from the .qrc file # noqa: F401
|
||||||
|
|
||||||
# À placer tout en haut, avant les imports PyQt6 si possible
|
# À placer tout en haut, avant les imports PyQt6 si possible
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
@@ -96,7 +96,14 @@ class MainWindow(QMainWindow):
|
|||||||
event.accept()
|
event.accept()
|
||||||
|
|
||||||
def connexion_btn_link(self):
|
def connexion_btn_link(self):
|
||||||
toast('Hello Python🐍')
|
icon = {
|
||||||
|
'src': ':/assets/background.png',
|
||||||
|
'placement': 'appLogoOverride'
|
||||||
|
}
|
||||||
|
buttons = [
|
||||||
|
{'activationType': 'protocol', 'arguments': '', 'content': 'Entrer en jeu'},
|
||||||
|
]
|
||||||
|
toast('C\'est enfin à ton tour d\'entrer en jeu! 🎮🐍', app_id='LaTanière Launcher',buttons=buttons)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
@@ -114,4 +121,4 @@ if __name__ == "__main__":
|
|||||||
app.setFont(custom_font)
|
app.setFont(custom_font)
|
||||||
window = MainWindow()
|
window = MainWindow()
|
||||||
window.show()
|
window.show()
|
||||||
sys.exit(app.exec())
|
sys.exit(app.exec())
|
||||||
|
|||||||
@@ -7,3 +7,8 @@ requires-python = ">=3.14"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"pyside6>=6.10.2",
|
"pyside6>=6.10.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.mypy]
|
||||||
|
[[tool.mypy.overrides]]
|
||||||
|
module = ["win11toast.*"]
|
||||||
|
follow_untyped_imports = true
|
||||||
|
|||||||
Reference in New Issue
Block a user