title: Where do GUI's go in a general application
body: <p>I had a pretty general question. </p>
  
  <p>I'm used to programming my main code inside def main(): 
  But when I made a GUI using TKinter and put it inside my main code none of my variables worked! After putting my GUI on indent 0 code the GUI finally worked, but any functions I activated using my GUI didn't have my variables! Does anyone know what to do? </p>
  
  <p>Also, if my GUI takes input values and stores them in a variable and activates a function, will that function need to have this variable passed into it? Or does it already know?</p>
  
  <p>Programming on Jetbrains Pycharm in Python 3.4.</p>