There is a loop in my python script using nicegui.
the script exec verif_input() without stopping.
You can find my simplified script below :
def mainfct():
with ui.stepper().props('vertical').classes('w-full') as stepper:
with ui.step('step 1'):
with ui.stepper_navigation():
ui.button('Next', on_click=stepper.next)
with ui.step('step 2'):
with ui.stepper_navigation():
ui.button('Next', on_click=stepper.next)
ui.button('Back', on_click=stepper.previous).props('flat')
with ui.step('step 3'):
with ui.stepper_navigation():
ui.button('Verif', on_click=lambda: ui.navigate.to('/FTTO_PHASE1_RES_page', new_tab=True)).props('no-caps')
ui.button('Back', on_click=stepper.previous).props('flat')
@ui.page('/FTTO_PHASE1_RES_page',title='PHASE1_RES1')
def PHASE1_RES_page():
verif_input()
mainfct()
@ui.page('/FTTO_PHASE1_page',title='FTTO_PHASE1')
def PHASE1_page():
ui.button('GO', on_click=lambda: mainfct()).props('no-caps')
ui.run()
Do you have an idea of the solution ? thank you for your help.
New contributor
user25472171 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.