Hi, to all.

Well, I have some list results that I must write to a
Window.
This is what I have tu show:
(('Name1',), ('Name2',))

This is my "show function"
    def Listar_Mostrar(self,event):
        connect = MySQLdb.connect(host,user,passwd,db)
        cursor = connect.cursor()        
        cursor.execute("SELECT nombres FROM
apiterapia")
        result = cursor.fetchall()
        for record in result:
           
self.text_ctrl_listar.AppendText(record[0])

The results are shown in the text window as:
Name1Name2

And what I really want to do is something like this:
Name1
Name2

Anybody knows how this can be done? 
Thanks to all of you.



                
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to