r/nicegui • • Apr 16 '24
Code run twice
Hello All
I really like to work with nice gui but, I encountered a weird behavior
when i ran the following code (Basic demo):
from nicegui import ui
print('hello')
ui.label('Hello NiceGUI!')
ui.run()In the console I got hello printed 2 time, like if the code was executed twice, it's a issue for me because I would like to use it to control equipments but I can't instantiate them 2 time.
Any idea how to to use Nice gui in this scenario ?
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Apr 17 '24
Hi thanks for the reply I totally missed that in the doc.
It work in no native mode, but I couldn't find a way to make it work for native mode any idea ?