Introduction to PySimpleGUI

It is easy to use with simple yet HIGHLY customizable features of GUI for Python. It is based solely on Tkinter. It is a Python GUI For Humans that Transforms Tkinter, PyQt, Remi, WxPython into portable user-friendly Pythonic interfaces.

How can we use PySimpleGUI?

The Steps for using the GUI package PySimpleGUI are:-

  • Install PySimpleGUI
  • pip install PySimpleGUI 
  • Find a GUI that looks a lot similar to which you want to design and create.
  • Copy code from Cookbook.
  • Paste into your IDE and run.

Example: Sample Program to showcase PySimpleGUI layout.





import PySimpleGUI as sg
layout = [[sg.Text('Your typed characters appear here:'),
           sg.Text(size=(15,1), key='-OUTPUT-')],
          [sg.Button('Display'), sg.Button('Exit')]]
window = sg.Window('Introduction', layout)
while True:
    event, values =
    print(event, values)
    if event in  (None, 'Exit'):
    if event == 'Display':
        # Update the "output" text element
        # to be the value of "input" element



Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.