Arquivo: db_form.py
from tkinter import  *
import sqlite3

root = Tk()
root.geometry('500x230')
root.title("Formulario")

Fullname=StringVar()

def database():
    nome=Fullname.get()
    conectar = sqlite3.connect('Form2.db')
    cursor=conectar.cursor()
    cursor.execute('CREATE TABLE IF NOT EXISTS Student (FullName TEXT)')
    cursor.execute('INSERT INTO Student (FullName) VALUES(?)',(nome,))
    conectar.commit()

label_0 = Label(root, text= "Formulario", width=20, font=("bold", 20))
label_0.place(x=90,y=53)
label_1 = Label(root, text= "Name", width=20, font=("bold", 10))
label_1.place(x=80,y=130)

entry_1 = Entry(root, textvar=Fullname)
entry_1.place(x=240, y=130)

Button(root, text= 'Submit', width=20,bg='brown', fg='white', command=database).place(x=180, y=180)
   
root.mainloop()