Let's say I have a window that has a button which will open a second window that contains a several Input() and a button that will act as submit. How do I handle the event of the button in the second window? I tried putting it on the same event loop like the rest but when I click on the button it does nothing.
EDIT
Terribly sorry for the title changes, I'm afraid I could not phrase it properly. I hope you still understand what I'm trying to say.