-
QuestionHello, I'll like to know if there is a way to keep a dialog opened even when the user click next to it ? Here is a simple code in wich the dialog is opened by clicking a button. I would like the dialog window to stay visible till the user has clicked on the "Fine" button. from nicegui import ui
def show_dialog():
dialog.open()
def clicked():
ui.notification('he is fine')
dialog.close()
with ui.dialog() as dialog, ui.card():
ui.label("How are you ?")
ui.button("Fine", on_click=lambda:clicked())
ui.button("show dialog", on_click=show_dialog)
ui.run() Thanks by advance for your answers ! |
Beta Was this translation helpful? Give feedback.
Answered by
chupins
Jan 9, 2025
Replies: 1 comment
-
I just find out how to do it reading the dialog.py file !
And it works :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chupins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just find out how to do it reading the dialog.py file !
And it works :)