How do I build a dialog box that take away focus from the parent window and force user for an input? Unless a user provide an input or press a cancel button, the parent window won’t be accessible. So it’s kind of a message box but with an input field. I found top-level method to create a top-level window but I couldn’t find a method to stop user from accessing parent window. Thanks
Share
I’m not positive, but it looks like if you make a new class inherited from
TopLevelbut attach it to a parent, then callself.transient(parent)you should have something close to what you’d like. I am assuming that it’ll block input to the parent window as well.Check out this page for more details