Skip to content

Instantly share code, notes, and snippets.

@MikeTheWatchGuy
Created July 2, 2019 13:51
Show Gist options
  • Save MikeTheWatchGuy/19a2fff1f997e6b2e05719474ed5c82f to your computer and use it in GitHub Desktop.
Save MikeTheWatchGuy/19a2fff1f997e6b2e05719474ed5c82f to your computer and use it in GitHub Desktop.
import PySimpleGUI as sg
layout = [[sg.Text('My Text Editor')],
[sg.Multiline(size=(100,20))],]
window = sg.Window('My Text Editor', layout)
while True: # Event Loop
event, values = window.Read()
if event is None:
break
print(event, values)
window.Close()
@MikeTheWatchGuy
Copy link
Author

Here is what the code above produces:

image

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