Configure modules for vscode
This commit is contained in:
@@ -6,14 +6,14 @@ from PyQt6.QtCore import Qt
|
||||
from PyQt6.QtGui import QFontDatabase, QFont, QColor
|
||||
from PyQt6.QtWidgets import QApplication, QMainWindow
|
||||
|
||||
from win11toast import toast
|
||||
from win11toast import toast, notify
|
||||
|
||||
from slidergroovecolorstyle import ThinSubPageLineStyle, ThinAddPageLineStyle
|
||||
|
||||
# Compile resources.qrc into 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
|
||||
if sys.platform.startswith('linux'):
|
||||
@@ -96,7 +96,14 @@ class MainWindow(QMainWindow):
|
||||
event.accept()
|
||||
|
||||
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__":
|
||||
@@ -114,4 +121,4 @@ if __name__ == "__main__":
|
||||
app.setFont(custom_font)
|
||||
window = MainWindow()
|
||||
window.show()
|
||||
sys.exit(app.exec())
|
||||
sys.exit(app.exec())
|
||||
|
||||
Reference in New Issue
Block a user