title: Attribute Error: type object 'StartPage' has no attribute 'Username_Text'
body: <p>I’m trying to call as stringvar out of another class but get the following error :</p>
  
  <p><code>AttributeError: type object 'class' has no attribute 'stringVar'</code></p>
  
  <p>Please see the code below, I don’t know what I’m doing wrong.</p>
  
  <p>If I add this to my code</p>
  
  <pre><code>StartPage_object = StartPage()
  
  USER = StartPage_object.Username_Text.get()
  PASSWORD = StartPage_object.Password_Text.get()
  </code></pre>
  
  <p>it gives me a new error: </p>
  
  <p><code>__init__() missing 2 required positional arguments: 'parent' and 'controller'</code></p>
  
  <p>And If I add this</p>
  
  <pre><code>StartPage_object = StartPage(self)
  
  USER = StartPage_object.Username_Text.get()
  PASSWORD = StartPage_object.Password_Text.get()
  </code></pre>
  
  <p>it gives me a new error: </p>
  
  <p><code>name 'self' is not defined</code></p>
  
  <pre><code>class StartPage(tk.Frame):
  
       def __init__(self, parent, controller):
           tk.Frame.__init__(self,parent)
  
  #=============Set_Background==================&gt;
       load1 = Image.open(Image_File +"\Login_Bcakground.png")
       render1 =ImageTk.PhotoImage(load1)
  
  #========= Reset_username &amp; Password ===========&gt;
       Username_Text= tk.StringVar()
       Password_Text= tk.StringVar()
  
  #==== Creating Buttons, Entry Box and Labels with there commands ========&gt;
  
       Login_button = tk.Button(self, text="Login", 
                     fg="#d0cece",bg="#3f9a84",borderwidth = 0, 
                     font=Normal_Text,height =1,width = 10,
                              command=lambda: Login_Check())
       Login_button.place(x=1010,y=380)
  
  
       User_Name_Entry = tk.Entry(self,textvariable = Username_Text, fg = 
                          Entry_Box_Text_Colour,bg = 
                          Entry_Box_Back_White,borderwidth = 0, 
                          font=Normal_Text,width = 30)
       User_Name_Entry.place(x=795,y=282)
  
       User_Pass_Entry = tk.Entry(self,textvariable = Password_Text, fg = 
                         Entry_Box_Text_Colour,bg = 
                         Entry_Box_Back_White,borderwidth = 0, 
                         font=Normal_Text,width = 30)
       User_Pass_Entry.place(x=795,y=329)
  
  #===============Login==========================Login====================&gt;
  </code></pre>
  
  <p>Next Code is not in a class want to make n a globule var</p>
  
  <pre><code>USER = StartPage.Username_Text.get()
  PASSWORD = StartPage.Password_Text.get()
  </code></pre>