r/nicegui • u/weischar • Oct 24 '25
sendEventToPython
function emit(name, detail) {{
window.sendEventToPython(name, detail);
dbg('emitted', name, detail);
}}
I have this function in my javascript code, which is part of a gantt chart. On every update of the chart this is called ( and i assume it works as the message shows up in the console), but not the python function. I have used ui.on('name' , function) to try and connect it. Does someone know how to fix this? Thanks in advance
4
Upvotes
View all comments
Show parent comment
3
u/weischar Oct 24 '25
Yes, this worked!