My_tree.tag_configure('oddrow', background="white") My_tree.heading("OID", text="OID", anchor=W) My_tree.heading("CLASS", text="CLASS", anchor=W) My_tree.heading("MOTHER", text="MOTHER", anchor=W) My_tree.heading("FATHER", text="FATHER", anchor=W) My_tree.heading("DOCS", text="DOCS", anchor=W) My_tree.heading("BIRTH", text="BIRTH", anchor=CENTER) My_tree.heading("NAME", text="NAME", anchor=W) My_tree.heading("ID", text="ID", anchor=W) ![]() My_lumn("BIRTH", anchor=CENTER, width=100) My_tree = ttk.Treeview(tree_frame, yscrollcommand=tree_scroll) Record, record, record, record, record, record, record, record), My_tree.insert(parent='', index='end', iid=count, text='', ![]() I would like some help to solve this problem, this is the code: from tkinter import *ĭata =, ,, ,, ],Ĭ.execute("""CREATE TABLE IF NOT EXISTS SCHOOL (Ĭ.execute("INSERT INTO SCHOOL VALUES (:ID, :NAME, :BIRTH, :DOCS, :FATHER, :MOTHER, :CLASS)", ![]() I’m trying to create a registration form with python tkinter sqlite3, but i have a problem, when i do the update of just one record, all the names are updated (not just the one that was selected), and i have also this issue when i try do add new data: “c.execute(“INSERT INTO SCHOOL VALUES (:ID, :NAME, :BIRTH, :DOCS, :FATHER, :MOTHER, :CLASS)”, sqlite3.IntegrityError: UNIQUE constraint failed: SCHOOL.CLASS”
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |