On 24/03/2017 at 06:05, xxxxxxxx wrote:
I know, we are in Python sub-forum, but in C++ docs, we have a code snippet, that fits your question quite well. Please take a look at the GeDialog manual (the code snippet under GeDialog::KillEvents()). Let me know, if you have problems with the C++ in there.
On your last two questions, well, it of course depends highly on the use-case. A widget should be as flexible as possible to suit as many use-cases as possible. Think for example about the Commander (Shift-C) in Cinema 4D. It reacts to every key press (refining the search) and then executes when pressing enter. So my answers on your last two questions are yes and no.