You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll find the newer Demo Programs that have settings that use these new User Settings APIs. There is documentation on using them. NOTE - the Cookbook has an old manual way of creating your own settings file using JSON. The purpose of the User Settings APIs was to replace this technique (I'll replace that recipe).
In addition to settings windows, they are used for "history" of elements too.
The Demo Browser application is a newer one. Lets look at it:
There is a settings window that uses User Settings:
One of the items in this window is the path to the tree combo box:
It has a history of previously selected items. These items are stored in the same User Settings file as other items in this window.
The point here is that this API is good for a number of uses for programs. You don't have to have a settings window to have a need like this. Any piece of data that you want to store and retrieve later is a good candidate for User Settings.
The text was updated successfully, but these errors were encountered:
Have you seen the User Settings APIs that are now part of PySimpleGUI?
They were added a few releases ago and are not a very important part of the SDK.
I use them for many demos now and are also holding the "global settings" for all of PySimpleGUI.
PySimpleGUI is branching out a little by providing access to other libraries that a PySimpleGUI programmer may want to use:
You'll find the newer Demo Programs that have settings that use these new User Settings APIs. There is documentation on using them. NOTE - the Cookbook has an old manual way of creating your own settings file using JSON. The purpose of the User Settings APIs was to replace this technique (I'll replace that recipe).
Here is the primary documentation on them:
https://pysimplegui.readthedocs.io/en/latest/?#user-settings-api
In addition to settings windows, they are used for "history" of elements too.
The Demo Browser application is a newer one. Lets look at it:
There is a settings window that uses User Settings:
One of the items in this window is the path to the tree combo box:
It has a history of previously selected items. These items are stored in the same User Settings file as other items in this window.
The point here is that this API is good for a number of uses for programs. You don't have to have a settings window to have a need like this. Any piece of data that you want to store and retrieve later is a good candidate for User Settings.
The text was updated successfully, but these errors were encountered: