Web Analytics Made Easy - Statcounter
Skip to content

Settings File

Save & Load Programming Settings

This demo program shows one way to save your program's settings using a JSON file as your settings file. This code is particularly handy when you are building desktop-widgets like a Rainmater type of desktop widget.

The main program in the example is very small. The focus is on the settings window.

image

This is the settings window.

image

Now you can easily add settings to your programs that are saved to disk, a very nice touch that adds a lot of polish to your programs.

Config.ini format

In version 4.49.0.10 support for .INI format files was added. This is a quick example of how to use INI files with PySimpleGUI's User Settings APIs