title: How do you add label to another window tkinter using OOP
body: <p>When I add Label to the second Window, It doesn't add to the Second Window It Added to the First Window. </p>
  
  <pre class="lang-py prettyprint-override"><code>class testing:
      def __init__(self,root):
          root.config(bg='orange')
          root.geometry("500x500")
          lbl = Label(text="WOW TEXT").pack()
  
  
  class login:
      def __init__(self,root):
          root.config(bg='orange')
          root.geometry("500x500")
          self.login_form(root)
  
  
      def login_onlick(self):
          c.execute("SELECT * FROM Login WHERE Name = ? AND Password = ?",(self.e_name.get(),self.e_pass.get()))
          self.right_login = c.fetchall()
  
          if self.right_login:
              print("Login Now")
              self.top = testing(root=Tk())
          else:
              print("Wrong")    
  
  
      def login_form(self,root):
          self.lg_form=Label(root, text="Login Form",font="Times 40",bg='red',width=50)
          self.lg_form.pack()
  
          self.lbl_name=Label(root, text="Enter Name",font="times 20",bg='orange')
          self.lbl_name.pack()
          self.e_name = Entry(root,width=50)
          self.e_name.pack()
          self.lbl_pass=Label(root, text="Enter Password",font="times 20",bg='orange')
          self.lbl_pass.pack()
          self.e_pass = Entry(root,width=50)
          self.e_pass.pack()
          self.btn_create = Button(root,text="Login", bg ='green',width=13,height=4,command= self.login_onlick)
          self.btn_create.pack()
  
  root = Tk()
  
  login(root)
  
  conn.commit()
  
  root.mainloop()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uslZW.png" rel="nofollow noreferrer">The Output of My Program</a></p>