from tkinter import *
from tkinter import messagebox
root = Tk()
root.geometry("300x500")
root.title("Войти в Систему")
def registration():
    text = Label(text="Для входа в систему - зарегестрируйтесь!")
    text.log = Label(text="Введите Ваш логин :")
    registr_login = Entry()
    text.password1 = Label(text="Введите Ваш пароль:")
    registr_password1 = Entry()
    text.password2 = Label(text="Повторите Ваш Пароль: ")
    registr_password2 = Entry(show='*')
    button_registr = Button("Зарегестрироваться")
    text.pack()
    text.log.pack()
    registr_login.pack()
    text_passwor1.pack()
    registr_password1.pack()
    text_password2.pack()
    registr_password2.pack()
    button_registr.pack()
registration()
root.mainloop()Traceback (most recent call last):
  File "D:\Python\Login.py", line 28, in <module>
    registration()
  File "D:\Python\Login.py", line 17, in registration
    button_registr = Button("Зарегестрироваться")
  File "C:\Users\makar\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 2679, in __init__
    Widget.__init__(self, master, 'button', cnf, kw)
  File "C:\Users\makar\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 2595, in __init__
    BaseWidget._setup(self, master, cnf)
  File "C:\Users\makar\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 2564, in _setup
    self.tk = master.tk
AttributeError: 'str' object has no attribute 'tk'