I have created some Python code which is really complicated but it basically asks for an input and then outputs a huge DNA sequence depending on the input given, along with some graphs and many equations. I would like to embed this code into the user interface that I will most likely make with wxPython or Tkinter. I don't understand how to plug my code into the user interface. Please Help! Thanks!
The best advice for you is not to start trying to build the actual GUI. Learning GUI programming is not trivial and you should start slowly and work up to the real thing.
Pick a framework (Tkinter, wxPython, Qt) and start with the simplest tutorial you can find. Then try progressively harder tasks until you have enough experience to do a good job with your real task.
Embedding a python code to a GUI