From a625c4a3f8c6008d3c00e84df7e646444a91a654 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 21 Oct 2018 13:18:05 -0400 Subject: [PATCH] Windows check --- Demo_Button_Click.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Demo_Button_Click.py b/Demo_Button_Click.py index 9b2596eb..e930d076 100644 --- a/Demo_Button_Click.py +++ b/Demo_Button_Click.py @@ -5,6 +5,9 @@ if sys.version_info[0] >= 3: else: import PySimpleGUI27 as sg +if not sys.platform.startswith('win'): + sg.PopupError('Sorry, you gotta be on Windows') + sys.exit() import winsound