Skip to content

Commit f7e0cfd

Browse files
Python 2.7 warning
1 parent 076bf25 commit f7e0cfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Demo_Desktop_Widget_Email_Notification.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import PySimpleGUI as sg
66
else:
77
import PySimpleGUI27 as sg
8+
sg.PopupError('Sorry, at the moment this program only runs on Python 3')
9+
sys.exit()
810

911
import email
1012
import imaplib

0 commit comments

Comments
 (0)