aidenmitchell / statuscheck

Simple Python GUI to check service statuses
GNU General Public License v3.0
6 stars 0 forks source link

Create a settings file #2

Open aidenmitchell opened 2 years ago

aidenmitchell commented 2 years ago

Possibly a .json file, allow users to edit ping hosts, and enable/disable services to be monitored and displayed

PySimpleGUI commented 2 years ago

Take a look at the PySimpleGUI "User Settings" APIs

https://pysimplegui.readthedocs.io/en/latest/call%20reference/#usersettings-api-class-interface https://pysimplegui.readthedocs.io/en/latest/call%20reference/#user-settings-api-function-interface

They make working with JSON files simple and easy. I use these calls extensively in the Demo Programs and my personal programs.

I like how you used the simplified threading API in your status-check project:

https://github.com/aidenmitchell/statuscheck/blob/c9f960cfe36ce0fdef2554f1147313b27d61284b/src/gui.py#L88

I think you'll like the User Settings interface.