Created
July 7, 2019 00:25
-
-
Save MikeTheWatchGuy/88859be23f7dfe30a73bf06718b43244 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PySimpleGUI as sg | |
layout = [ | |
[sg.Image(filename=r'C:\Python\PycharmProjects\GooeyGUI\Holiday-Inn-Scheduler-master\imagebad.png')], | |
# [sg.Image(filename=r'C:\Python\PycharmProjects\GooeyGUI\Holiday-Inn-Scheduler-master\holidayinnlogo good.png')], | |
[sg.Button('Exit')] | |
] | |
window = sg.Window('My new window', layout) | |
while True: # Event Loop | |
event, values = window.Read() | |
if event in (None, 'Exit'): | |
break | |
print(event, values) | |
window.Close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Results of the 2 runs. First was with good file, the second with the bad file.
"Bad file" (except that GitHub has likely transcoded it
"Good file"