pyqt-dont-ask-again-dialog-example: PyQt5 dialog which is implementing “don’t ask again” checkbox using QSettings

Source: GitHub – yjg30737/pyqt-dont-ask-again-dialog-example: PyQt5 dialog which is implementing “don’t ask again” checkbox using QSettings

pyqt-dont-ask-again-dialog-example

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 🙂

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

Leave a Reply

The maximum upload file size: 500 MB. You can upload: image, audio, video, document, spreadsheet, interactive, other. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here