fix window platform

This commit is contained in:
2026-03-05 14:31:19 +01:00
parent a4bcd764db
commit 8e7242937e

View File

@@ -15,7 +15,7 @@ import resources as resources # This is generated from the .qrc file # noqa:
if sys.platform.startswith('linux'): if sys.platform.startswith('linux'):
os.environ["QT_QPA_PLATFORM"] = "xcb" os.environ["QT_QPA_PLATFORM"] = "xcb"
if sys.platform=='windows': if sys.platform=='windows' or sys.platform=="win32":
from win11toast import toast, notify from win11toast import toast, notify
# Remove this into final release # Remove this into final release
@@ -104,10 +104,9 @@ class MainWindow(QMainWindow):
buttons = [ buttons = [
{'activationType': 'protocol', 'arguments': '', 'content': 'Entrer en jeu'}, {'activationType': 'protocol', 'arguments': '', 'content': 'Entrer en jeu'},
] ]
if sys.platform=='windows': if sys.platform=='windows' or sys.platform=="win32":
toast('C\'est enfin à ton tour d\'entrer en jeu! 🎮🐍', app_id='LaTanière Launcher',buttons=buttons) toast('C\'est enfin à ton tour d\'entrer en jeu! 🎮🐍', app_id='LaTanière Launcher',buttons=buttons)
if __name__ == "__main__": if __name__ == "__main__":
app = QApplication(sys.argv) app = QApplication(sys.argv)