![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/06/2011, 22:18
|
| | Fecha de Ingreso: diciembre-2010
Mensajes: 162
Antigüedad: 14 años, 2 meses Puntos: 1 | |
Porque fetchone no me hace lo que quiero TENGO ESTA FUNCION Y ME PASA DE UN REGISTRO A OTRO PERO CUANDO VUALVO A EJECUTAR LA FUNCION NO ME MUESTRA EL SEGUNDO REGISTRO PROXIMO. LES AGRADECERIA UNA AYUITA. QUIERO QUE ME PASE DE UN REGISTRO A OTRO Y DESPUES AL OTRO ETC
def onsiguiente(self,event):
conexion=sqlite3.connect("MOTOS.S3DB")
cursor=conexion.cursor()
cursor.execute("SELECT CODIGO,PRECIO,DETALLE FROM MOTOS")
cursor.fetchone()
for row in cursor:
self.textocodigo.SetValue(row[2])
self.textocodigo2.SetValue(row[0])
self.textocodigo3.SetValue(row[1])
cursor.close()
conexion.close() |