Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-dont-ask-again-dialog-example
PyQt5 dialog which is implementing "don't ask again" checkbox using QSettings
https://github.com/yjg30737/pyqt-dont-ask-again-dialog-example
pyqt pyqt5 pyqt5-desktop-application pyqt5-examples pyqt5-gui qdialog qsettings qt
Last synced: 13 days ago
JSON representation
PyQt5 dialog which is implementing "don't ask again" checkbox using QSettings
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-dont-ask-again-dialog-example
- Owner: yjg30737
- License: mit
- Created: 2023-11-05T09:12:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-05T09:18:43.000Z (about 1 year ago)
- Last Synced: 2024-01-26T10:10:38.749Z (10 months ago)
- Topics: pyqt, pyqt5, pyqt5-desktop-application, pyqt5-examples, pyqt5-gui, qdialog, qsettings, qt
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-dont-ask-again-dialog-example
PyQt5 dialog which is implementing "don't ask again" checkbox using QSettingsI 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 :)
## Requirements
* PyQt5 >= 5.14## Method Overview
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.## Preview
![image](https://github.com/yjg30737/pyqt-dont-ask-again-dialog-example/assets/55078043/ac0bb163-6e90-4096-a2f2-ef457efb7922)