'error using an entry to bring database parameters
I am trying to bring what I have in my database and I want to show it using an read button I should introduce an ID in an entry and after pressing read button it should show all parameters from the database inside of the rest of entries
I am doing the next sentence but it does not work (you can see that I am doing entry by entry because I don't know how to do all the entries at the same time)
def buttonRead():
mi_conexion=sqlite3.connect('Usuarios')
mi_cursor=mi_conexion.cursor()
valor=mi_cursor.execute('SELECT NOMBRE_USUARIO FROM DATOSUSUARIOS WHERE ID=' + cuadroId.get())
nombre.set(valor)
mi_conexion.commit()
mi_conexion.close()
nombre=StringVar()
cuadroNombre=Entry(miFrame,textvariable=nombre)
It appears the next error inside of the entry (nombre) <sqlite3.Cursor object at 0x0000000002924030>
I am using Python3 and SQLLite
I hope that you understand me
Thank you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
