Skip to content

SimpleMessage -> SimpleQuestion, with parents

Colin Macdonald requested to merge parent_dialog into main

Continuing my quest for modal dialogs cleanups. This time its "SimpleMessage".

  • it always annoyed me b/c it asks a question So I have renamed it to SimpleQuestion.

  • It now requires you do specify the parent. Can be None if you don't know one or don't know (rare, currently the ctrl-C handler).


In some cases I used the subclass WarningQuestion which has a slightly more panicky warning icon instead of just a question icon.

It's alway possible to provide the question as a separate arg:

  SimpleQuestion(parent, "On no!  blah blah * 100", "Should we continue?",  details=...)

In some cases, I changed the messages to be phrased like that (its not required).

Merge request reports