Created
July 2, 2019 13:51
-
-
Save MikeTheWatchGuy/19a2fff1f997e6b2e05719474ed5c82f 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.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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is what the code above produces: