Skip to content

Instantly share code, notes, and snippets.

@MikeTheWatchGuy
Created July 7, 2019 00:25
Show Gist options
  • Save MikeTheWatchGuy/88859be23f7dfe30a73bf06718b43244 to your computer and use it in GitHub Desktop.
Save MikeTheWatchGuy/88859be23f7dfe30a73bf06718b43244 to your computer and use it in GitHub Desktop.
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()
@MikeTheWatchGuy
Copy link
Author

Results of the 2 runs. First was with good file, the second with the bad file.

SNAG-0420
SNAG-0421

"Bad file" (except that GitHub has likely transcoded it
imagebad

"Good file"
holidayinnlogo good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment