PyQt5 dialog which is implementing “don’t ask again” checkbox using QSettings
I created this because I thought there might be people who dislike being asked repeatedly whether to run a foreground app in the background or to close it.
This would be used a lot in my app as well 🙂
- PyQt5 >= 5.14
Two very vital functions:
- isAskAgainEnabled() – call if you want to know “dont_ask_again” attribute is currently true(enabled) or false
- setMessage(message) – call when you want to change the message displayed in the dialog.