Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 738 Bytes

File metadata and controls

17 lines (12 loc) · 738 Bytes

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