Right now, the timeout keyword in QNotifications.__init__() can be None, indicating that subsequent identical messages should not be suppressed, or a positive numeric, indicating that identical messages should be suppressed for an X number of seconds.
The problem (or rather inconvenience) is that you want suppress some message indefinitely, at least for the duration of the application session. An example is here: open-cogsci/QOpenScienceFramework#5
I therefore propose to:
- Add a Silence button to each message, which will cause the message to be suppressed indefinitely. This button could be to the left of the regular close button, with a clear icon.
- Allow
timeout to be infinite, either the string 'infinite' or (more elegantly) math.inf. In this case, the silence button should be hidden, because the regular close button already silences the message.
What do you think?