from tkinter import *
from db_class import Profile

window = Tk()
window.geometry("500x500")
path = "Profiles.sql"


def signup():
    profile = Profile(path)
    firstname = entryname.get()
    surename = entrysurename.get()
    email = entryemail.get()
    password = entrypass.get()
    new_ID = profile.get_count_of_profiles() + 1

    profile.registration(new_ID, firstname, surename, email, password)
    # profile.create_table()
    profile.get_all_profiles()


label1 = Label(window, text="Registrtion")
label1.place(x=175, y=10)

labelname = Label(window, text="Firstname: ")
labelname.place(x=20, y=40)

entryname = Entry(window)
entryname.place(x=300, y=40)

lblsurename = Label(window, text="Surename: ")
lblsurename.place(x=20, y=80)

entrysurename = Entry(window)
entrysurename.place(x=300, y=80)

labelemail = Label(window, text="Email: ")
labelemail.place(x=20, y=120)

entryemail = Entry(window)
entryemail.place(x=300, y=120)

lblpass = Label(window, text="Password: ")
lblpass.place(x=20, y=160)

entrypass = Entry(window)
entrypass.place(x=300, y=160)

btn = Button(window, text="Create", command=signup)
btn.place(x=175, y=200)

window.mainloop()
6291812f3643e26b4b526cb570f731d1c72ae857
<mask token>


def signup():
    profile = Profile(path)
    firstname = entryname.get()
    surename = entrysurename.get()
    email = entryemail.get()
    password = entrypass.get()
    new_ID = profile.get_count_of_profiles() + 1
    profile.registration(new_ID, firstname, surename, email, password)
    profile.get_all_profiles()


<mask token>

<mask token>
window.geometry('500x500')
<mask token>


def signup():
    profile = Profile(path)
    firstname = entryname.get()
    surename = entrysurename.get()
    email = entryemail.get()
    password = entrypass.get()
    new_ID = profile.get_count_of_profiles() + 1
    profile.registration(new_ID, firstname, surename, email, password)
    profile.get_all_profiles()


<mask token>
label1.place(x=175, y=10)
<mask token>
labelname.place(x=20, y=40)
<mask token>
entryname.place(x=300, y=40)
<mask token>
lblsurename.place(x=20, y=80)
<mask token>
entrysurename.place(x=300, y=80)
<mask token>
labelemail.place(x=20, y=120)
<mask token>
entryemail.place(x=300, y=120)
<mask token>
lblpass.place(x=20, y=160)
<mask token>
entrypass.place(x=300, y=160)
<mask token>
btn.place(x=175, y=200)
window.mainloop()

<mask token>
window = Tk()
window.geometry('500x500')
path = 'Profiles.sql'


def signup():
    profile = Profile(path)
    firstname = entryname.get()
    surename = entrysurename.get()
    email = entryemail.get()
    password = entrypass.get()
    new_ID = profile.get_count_of_profiles() + 1
    profile.registration(new_ID, firstname, surename, email, password)
    profile.get_all_profiles()


label1 = Label(window, text='Registrtion')
label1.place(x=175, y=10)
labelname = Label(window, text='Firstname: ')
labelname.place(x=20, y=40)
entryname = Entry(window)
entryname.place(x=300, y=40)
lblsurename = Label(window, text='Surename: ')
lblsurename.place(x=20, y=80)
entrysurename = Entry(window)
entrysurename.place(x=300, y=80)
labelemail = Label(window, text='Email: ')
labelemail.place(x=20, y=120)
entryemail = Entry(window)
entryemail.place(x=300, y=120)
lblpass = Label(window, text='Password: ')
lblpass.place(x=20, y=160)
entrypass = Entry(window)
entrypass.place(x=300, y=160)
btn = Button(window, text='Create', command=signup)
btn.place(x=175, y=200)
window.mainloop()

from tkinter import *
from db_class import Profile
window = Tk()
window.geometry('500x500')
path = 'Profiles.sql'


def signup():
    profile = Profile(path)
    firstname = entryname.get()
    surename = entrysurename.get()
    email = entryemail.get()
    password = entrypass.get()
    new_ID = profile.get_count_of_profiles() + 1
    profile.registration(new_ID, firstname, surename, email, password)
    profile.get_all_profiles()


label1 = Label(window, text='Registrtion')
label1.place(x=175, y=10)
labelname = Label(window, text='Firstname: ')
labelname.place(x=20, y=40)
entryname = Entry(window)
entryname.place(x=300, y=40)
lblsurename = Label(window, text='Surename: ')
lblsurename.place(x=20, y=80)
entrysurename = Entry(window)
entrysurename.place(x=300, y=80)
labelemail = Label(window, text='Email: ')
labelemail.place(x=20, y=120)
entryemail = Entry(window)
entryemail.place(x=300, y=120)
lblpass = Label(window, text='Password: ')
lblpass.place(x=20, y=160)
entrypass = Entry(window)
entrypass.place(x=300, y=160)
btn = Button(window, text='Create', command=signup)
btn.place(x=175, y=200)
window.mainloop()

from tkinter import *
from db_class import Profile

window = Tk()
window.geometry("500x500")
path = "Profiles.sql"


def signup():
    profile = Profile(path)
    firstname = entryname.get()
    surename = entrysurename.get()
    email = entryemail.get()
    password = entrypass.get()
    new_ID = profile.get_count_of_profiles() + 1

    profile.registration(new_ID, firstname, surename, email, password)
    # profile.create_table()
    profile.get_all_profiles()


label1 = Label(window, text="Registrtion")
label1.place(x=175, y=10)

labelname = Label(window, text="Firstname: ")
labelname.place(x=20, y=40)

entryname = Entry(window)
entryname.place(x=300, y=40)

lblsurename = Label(window, text="Surename: ")
lblsurename.place(x=20, y=80)

entrysurename = Entry(window)
entrysurename.place(x=300, y=80)

labelemail = Label(window, text="Email: ")
labelemail.place(x=20, y=120)

entryemail = Entry(window)
entryemail.place(x=300, y=120)

lblpass = Label(window, text="Password: ")
lblpass.place(x=20, y=160)

entrypass = Entry(window)
entrypass.place(x=300, y=160)

btn = Button(window, text="Create", command=signup)
btn.place(x=175, y=200)

window.mainloop()