dchen327 / pingmote

Cross-platform Python global emote picker to quickly insert custom images/gifs
MIT License
25 stars 3 forks source link

Suggestion - User settings using PySimpleGUI or json #16

Open PySimpleGUI opened 3 years ago

PySimpleGUI commented 3 years ago

I used to have a config.py in my first Python projects. They seemed to always end being a pain and screw me up.

Not long ago the User Settings APIs were added to PySimpleGUI. I use them extensively in the demos and personal programs.

The Template for rainmeter style widgets is one place to see them, the other is the demo browser. The demo browser uses a "settings" window that you can copy easily.

image

The Desktop Widgets doesn't use a settings window and instead uses the right click menu. image

You've got enough settings in your config file to warrant a settings window if you change them very often. If not, you can put them in a PySimpleGUI User Settings file (json). All I do is make the interface look easier and does autosaving, autoloading, etc.

dchen327 commented 3 years ago

Wow! You've certainly given me a ton of inspiration and plenty of things to look into.

I'll definitely take a look as soon as I can!

PySimpleGUI commented 3 years ago

Wow! You've certainly given me a ton of inspiration and plenty of things to look into.

That's what I was going to say.

PySimpleGUI commented 3 years ago

I'm really liking the addition of the SystemTray icon for your program. I don't have to "worry" about knowing if it's running or not. I can glance over and see.

PySimpleGUI commented 3 years ago

Coming soon is a real system tray icon version of your program.....very soon....

Do you have a logo that you've made for your program?

dchen327 commented 3 years ago

I don't happen to have a logo, but wow looking forward to the system tray icon version!! Haven't been able to work on it too much in the past couple months but I'm excited :)

PySimpleGUI commented 3 years ago

pingmote

Your logo in the code I've been working with.

Watch this space for more today on the system tray. It'll all be posted in a bit. I'll also send you the version of pingmote that I run which includes use of the new capabilities.

PySimpleGUI commented 3 years ago

OK! As promised, back with more details.

I've changed my version of pingmore to use the newly released psgtray feature.

This system tray icon is for PingMote. The keyboard shortcuts still work of course. It's another way to bring up the interface. A single click of the icon will both bring it up or hide it again.

image

The code is in my repo:

https://github.com/PySimpleGUI/pingmote

Information about the new package is in the latest announcement and there will be a new issue opened a bit later today to tell everyone more about this feature. It's not yet in the documentation.