mardi 13 octobre 2015

Sqlite listbox select delete button and input

How can I add a button delete and input popup to this code? I've tried many times, but with no success. This is the reworked code, I do not understand what is happening here.

import tkinter.font as tkFont
import tkinter.ttk as ttk
from tkinter import *
import tkinter as tk
import sqlite3 as lite
import sys

con = lite.connect('auta.sql')
with con:
    cur = con.cursor()
    cur.execute("SELECT * FROM OSOBY")
    rows = cur.fetchall()

I have posted the entire code here. And here is my database:

sqlite> PRAGMA table_info(OSOBY)
   ...> ;
0|pesel|text|1||0
1|imie|text|1||0
2|nazwisko|text|1||0
3|adres|text|1||0
4|telefony|text|1||0
5|data_urodzenia|text|1||0

Aucun commentaire:

Enregistrer un commentaire