title: Tkinter Get Text entry in Notebook page
body: <p>I have created a notebook and added a frame to it:</p>
  <pre><code>nb = ttk.Notebook(root, style=&quot;TNotebook&quot;)
  
  page1 = ttk.Frame(nb, style='Frame1.TFrame')
  layout1(page1)
  
  nb.add(page1, text='Welcome')
  
  </code></pre>
  <p>So i have a function layout1, the first page of the notebook,
  i added to it a Text:</p>
  <pre><code>def layout1(page):
      
      entry = Text(page, width=20)
      entry.place(relx=0.03, rely=0.1, height=400)
      Button(page, text='EXECUTE', command=import_entry).place(relx=0.5, rely=0.6)
  
  </code></pre>
  <p>And next i have my import_entry function:</p>
  <pre><code>def import_entry():
      result = entry.get()
      print(result)
  </code></pre>
  <p>I can't get the entry because of accessibilty of variables in function. So, how can i get it?</p>