How to make Window.show_dialog block the execution of the main window and application? #7084
Unanswered
evbernardes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have several elements with callbacks that I add to a dialog:
I then want to call
window.show_dialog(dlg)
so it waits until I get all the parameters from the user before doing something.Currently,
show_dialog
does not block the rest of the application, which I think is by design. However, in my case this is necessary, otherwise the function would run before getting the parameters.I tried solving this problem with this:
But the result is that now everything is blocked and I don't even see the dialog.
What is the correct way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions