After importing one icon i want to give functionality

please format your code posting by pasting it into the

</> code button

of the editor header menu ( context name: Preformatted text )
it looks like
```
type or paste code here
```

also can use the ``` manually above and below your code.

thank you.


you switched to G4P lib,
good


no, i not talk WINDOW, i talked SCREEN ( same window / different content )

but G4P can do good 2 window applications,
see [SOLVED] G4P options in second window problem here
if it fits into your program flow


basically,
a second window can have the G4P text edit fields
with own event handler store the text content ( on ENTER )
to global variables.
so independent if window closed or not
the input is available in main window.