Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement