Introduction to PySimpleGUI Last Updated : 10 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report 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. Python3 1== import PySimpleGUI as sg sg.theme('BluePurple') layout = [[sg.Text('Your typed characters appear here:'), sg.Text(size=(15,1), key='-OUTPUT-')], [sg.Input(key='-IN-')], [sg.Button('Display'), sg.Button('Exit')]] window = sg.Window('Introduction', layout) while True: event, values = window.read() print(event, values) if event in (None, 'Exit'): break if event == 'Display': # Update the "output" text element # to be the value of "input" element window['-OUTPUT-'].update(values['-IN-']) window.close() Output: Comment More infoAdvertise with us Next Article User Input in PySimpleGUI V vigneshsuresh4499 Follow Improve Article Tags : Python Python Programs Python-gui Practice Tags : python Similar Reads Themes in PySimpleGUI Themes are used for designing Beautiful windows. It gives the user a choice to showcase his creativity on the GUI with colors. Coloring the GUI window can be accomplished with 1 line of code. sg.theme('Dark Amber 5')Note: Dark Amber is the name of the Theme and 5 is the version or the patch. We make 3 min read User Input in PySimpleGUI It is important how keys are key for understanding PySimpleGUI elements. If the user does not specify a key, then the element will be called an input element, a key will be provided to the user by default in integer form, starting the numbering with zero. If the user doesn't specify any keys, then t 1 min read Asynchronisation Usage in PySimpleGUI We use this design pattern for projects that actually will need to poll or output something on a regular basis. In this case, we're indicating we want a timeout=10 in our window.read call. Also, this will cause the call to return a "timeout key" as the event every 10 milliseconds has passed without 2 min read Adding Customized Color Theme in PySimpleGUI PySimpleGUI allows users to choose Themes for its Theme list. Also, it allows users to specify and customize the Theme according to their choice. The User only should know the Color shades i.e the hex codes of the Colors. Accordingly, he/she can customize the Theme by new Colors. Example: Python3 im 1 min read Building Desktop Applications in Python Desktop applications are crucial for various industries, from business management tools to personal productivity software. Python, known for its simplicity and versatility, is a great choice for building desktop applications. It offers several powerful GUI frameworks that make development easier and 8 min read Python Tutorial - Learn Python Programming Language Python is one of the most popular programming languages. Itâs simple to use, packed with features and supported by a wide range of libraries and frameworks. Its clean syntax makes it beginner-friendly. It'sA high-level language, used in web development, data science, automation, AI and more.Known fo 10 min read Like