title: tkinter command to call function from another Python script
body: <p>I am having a few issues, calling Python functions defined in another script using tkinter. I would prefer to have a separate script for my functions that the GUI uses when needed. At the moment I am doing it like this.</p>
  
  <pre><code>ttk.Button(mainframe, text="1", command=one).grid(column=1, row=1, sticky=NW)
  
  def one():
      code_entry.insert(END,"1")
  </code></pre>
  
  <p>The above calls the command one on a button click, which will print the character one in a entry field with the GUI. I thought I could create a separate script to hold my functions and call them like this:</p>
  
  <pre><code>ttk.Button(mainframe, text="1", command=functions.one()).grid(column=1, row=1, sticky=NW)
  </code></pre>
  
  <p>And then simply add an import statement at the top of my GUI, like below:</p>
  
  <pre><code>import functions
  </code></pre>
  
  <p>This doesn't work and looking for some advice on how to approach this.</p>