title: Passing class values to another class using Tkinter in Python 3.5
body: <p>I have the following code (example of my real program):</p>
  
  <pre><code>from tkinter import *
  def class1(Frame)
  
      def nv(self,x):
          self.vent=Toplevel(self.master)
          self.app=class2(self.vent)
          self.value=x
  
      def __init__(self,master):
          super().__init__(master)
          self.master=master
          self.frame=Frame(self.master)
          self.btn=Button(self, text="example", command=lambda: self.nw(1))
          self.btn.pack()
          self.pack()
  
  def class2(Frame):
      def __init__(self, master):
          super().__init__(master)
          self.master=master
          self.frame=Frame(self.master)
          self.value=class1.nw.value.get()
  root= Tk()
  marco=Frame(root)
  marco.pack
  lf=class1(marco)
  root.mainloop()
  </code></pre>
  
  <p>this last part is the problem, i cant use .get() properly for this problem, I want to get the value of x when I create the new window.
  I use lambda so i can execute the command with parameters.
  So the question is, is there a way for me to access the value of x in class 2?</p>