As discussed in the Getting Started Section on Popups, the popups can be broken down into 2 types, input popups and output popups.
Generally speaking, popups are simple windows that you can often create yourself with little difficulty. There is one parameter,
no_window, that provides a capability that is beyond what you can achieve using normal elements.
The input popup makes is easy for you to quickly get a basic piece of information from your user. The information may be as simple as a text string (
popup_get_text) or a system resource such as a filename (
popup_get_file). See the Getting Started Section on Input Popups for a detailed explanation of these popups.
For input popups that utilize low-level system dialogs, it's possible for you to open these dialogs without building a window. Setting the
no_window parameter to
True will cause the low level dialog to open without any window being shown.
For example, if you want to show the file open dialog, then this line of code will do that:
You will see this dialog box open on your screen instead of a
popup window. It's the same dialog box that is shown when the
FileBrowse button is clicked in the normal
popup_get_file is called.
popup_get_file call without the
shows this popup window:
Pressing the "Browse" button results in the dialog box being shown.
popup_get_folder also has this
See the Getting Started Section on Output Popups for a detailed explanation of these popups.
Make Your Own
If a popup call doesn't have a parameter you are in need of or doesn't have the exact kind of layout you're after, then that's your signal that it's time for you to learn how to make PySimpleGUI Windows using your own layouts.