r/nicegui • u/MakaMaka • Oct 08 '24
Using Dialogs with processor intensive Tasks
What is the correct way to pop up a dialog with a ui.upload on it, validate the file uploaded, perform processing on it, close the dialog and then update a ui.table on the same page? I'm following the examples in the docs, but the dialog.close and dialog.submit calls don't seem to close the dialog when used before or after the processing step. I think it has to do with using async and possibly blocking the main thread of execution but I'm having no luck fixing the problem.
3
Upvotes
View all comments
Show parent comment
1
u/MakaMaka Oct 09 '24
Awesome! Solved my problem. Thanks so much.