Printing to a gui window
Demonstration of displaying your program's text information in a variety of ways.
There are a number of ways to display text information using PySimpleGUI. A few include:
- Use the "Debug Window" by calling sg.Print
- Call a
popup
where the parms passed in will be shown in a new window - Create your window with an Output Element in it
- Change the value of a
Text
Element by calling itsupdate
method - Change the value of a
Multiline
Element by calling itsupdate
method
This code demonstrates several of these ways. You'll see 2 windows displayed. One is the Debug Window, the other is your custom window with output and text elements.