[Tutor] AppendText as new lines
_ Dan _
danf_1979 at yahoo.es
Thu Aug 11 02:47:21 CEST 2005
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
More information about the Tutor
mailing list