[Tutor] AppendText as new lines

Kent Johnson kent37 at tds.net
Thu Aug 11 03:06:33 CEST 2005


_ Dan _ wrote:
>         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

Looks like you need some newlines:
  self.text_ctrl_listar.AppendText(record[0])
  self.text_ctrl_listar.AppendText('\n')

Kent



More information about the Tutor mailing list