Adapting for windows and linux
This commit is contained in:
@@ -6,8 +6,6 @@ from PyQt6.QtCore import Qt
|
||||
from PyQt6.QtGui import QFontDatabase, QFont, QColor
|
||||
from PyQt6.QtWidgets import QApplication, QMainWindow
|
||||
|
||||
from win11toast import toast, notify
|
||||
|
||||
# Compile resources.qrc into resources_rc.py
|
||||
# rcc -g python resources.qrc -o resources_rc.py
|
||||
|
||||
@@ -17,6 +15,9 @@ import resources as resources # This is generated from the .qrc file # noqa:
|
||||
if sys.platform.startswith('linux'):
|
||||
os.environ["QT_QPA_PLATFORM"] = "xcb"
|
||||
|
||||
if sys.platform=='windows':
|
||||
from win11toast import toast, notify
|
||||
|
||||
# Remove this into final release
|
||||
from fake_patch_notes import patch_note
|
||||
NO_STAFF = True
|
||||
@@ -103,7 +104,8 @@ class MainWindow(QMainWindow):
|
||||
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 sys.platform=='windows':
|
||||
toast('C\'est enfin à ton tour d\'entrer en jeu! 🎮🐍', app_id='LaTanière Launcher',buttons=buttons)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user