fix window platform
This commit is contained in:
@@ -15,7 +15,7 @@ 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':
|
||||
if sys.platform=='windows' or sys.platform=="win32":
|
||||
from win11toast import toast, notify
|
||||
|
||||
# Remove this into final release
|
||||
@@ -104,10 +104,9 @@ class MainWindow(QMainWindow):
|
||||
buttons = [
|
||||
{'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)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user