Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import PySimpleGUI as sg
  2.  
  3. layout = [
  4. [sg.Image(filename=r'C:\Python\PycharmProjects\GooeyGUI\Holiday-Inn-Scheduler-master\imagebad.png')],
  5. # [sg.Image(filename=r'C:\Python\PycharmProjects\GooeyGUI\Holiday-Inn-Scheduler-master\holidayinnlogo good.png')],
  6. [sg.Button('Exit')]
  7. ]
  8.  
  9. window = sg.Window('My new window', layout)
  10.  
  11. while True: # Event Loop
  12. event, values = window.Read()
  13. if event in (None, 'Exit'):
  14. break
  15. print(event, values)
  16. window.Close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement