If I only have a pure code file that contains all the parameters that the GUI needs to set, how can I extend the code file into an example

How do I update the parameters set in the code to the GUI and start running

I do not understand the question. Please provide a concrete example.